mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:01:48 +08:00
18 lines
252 B
Plaintext
18 lines
252 B
Plaintext
```js
|
|
// Button.stories.js
|
|
import { Button } from './Button';
|
|
|
|
export default {
|
|
component: Button,
|
|
};
|
|
|
|
// Wrapped in light theme
|
|
export const Default = {};
|
|
|
|
// Wrapped in dark theme
|
|
export const Dark = {
|
|
parameters: {
|
|
theme: 'dark',
|
|
},
|
|
};
|
|
``` |