-
-
Save aaronksaunders/3a842803e931ad2fdc7a3892e9499539 to your computer and use it in GitHub Desktop.
Ionic Vue Storybook v7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Preview, setup } from "@storybook/vue3"; | |
/* Core CSS required for Ionic components to work properly */ | |
import '@ionic/vue/css/core.css'; | |
/* Basic CSS for apps built with Ionic */ | |
import '@ionic/vue/css/normalize.css'; | |
import '@ionic/vue/css/structure.css'; | |
import '@ionic/vue/css/typography.css'; | |
/* Optional CSS utils that can be commented out */ | |
import '@ionic/vue/css/padding.css'; | |
import '@ionic/vue/css/float-elements.css'; | |
import '@ionic/vue/css/text-alignment.css'; | |
import '@ionic/vue/css/text-transformation.css'; | |
import '@ionic/vue/css/flex-utils.css'; | |
import '@ionic/vue/css/display.css'; | |
/* Theme variables */ | |
import '../src/theme/variables.css'; | |
import { IonicVue } from "@ionic/vue"; | |
setup((app) => { | |
app.use(IonicVue) | |
}); | |
const preview: Preview = { | |
parameters: { | |
actions: { argTypesRegex: "^on[A-Z].*" }, | |
controls: { | |
matchers: { | |
color: /(background|color)$/i, | |
date: /Date$/, | |
}, | |
}, | |
}, | |
}; | |
export default preview; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment