storybook-addon-themes
storybook-addon-themes copied to clipboard
How do you react to theme change in story?
In the docs I cannot find how you react to a theme change in your story.
I have something like
export default {
title: "My Component"
}
export const MyComponent = () => {
const theme = ???
return `<my-component theme=${theme}></my-component>`
}
But where do I get the theme
param?