docs: button-story-with-blue-args

This commit is contained in:
andrekisi 2020-09-15 23:12:32 +02:00
parent 76f5d693a1
commit dc5fc8f697
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,19 @@
```js
// Button.stories.js
import Button from './Button';
export default {
title: 'Components/Button',
component: Button,
parameters: {
backgrounds: {
values: [
{ name: 'red', value: '#f00' },
{ name: 'green', value: '#0f0' },
{ name: 'blue', value: '#00f' },
],
},
},
};
```

View File

@ -158,6 +158,7 @@ For instance, suppose you wanted to test your Button component against a differe
paths={[
'react/button-story-with-blue-args.js.mdx',
'react/button-story-with-blue-args.ts.mdx',
'vue/button-story-with-blue-args.js.mdx',
'angular/button-story-with-blue-args.ts.mdx',
]}
/>