-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup Decorator in VueJS preview.cjs #74
Comments
Hi, quotation of docs:
combining with: export default {
title: 'CSF|Button',
component: Button,
decorators: [ withThemes ],
parameters: {
themes: {
default: 'twitter',
list: [
{ name: 'twitter', class: ['theme-twt', 'light-mode'], color: '#00aced' },
{ name: 'facebook', class: ['theme-fb', 'dark-mode'], color: '#3b5998' },
],
Decorator: YourDecorator, // <---------------- HERE
},
},
}; |
Thanks, can you be a little bit more explicit here? This is what I'm working with and cannot seem to get above to work as desired.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'd like to set up a decorator to switch .css file globally on preview.cjs in VueJs. Is this possible? I see some snippets for doing it on story level, but not globally.
The text was updated successfully, but these errors were encountered: