src
5 years ago
badges.stories.js
5 years ago
components.stories.js
5 years ago
examples.stories.js
5 years ago
icons.stories.js
5 years ago
items.stories.js
5 years ago
badges.stories.js
33 lines
| 1 | import styles from './src/styles'; |
| 2 | |
| 3 | import { withA11y } from '@storybook/addon-a11y'; |
| 4 | |
| 5 | export default { |
| 6 | title: 'Setup Page/Badges', |
| 7 | decorators: [ withA11y ], |
| 8 | }; |
| 9 | |
| 10 | const Styles = ` |
| 11 | <style> |
| 12 | ` + styles + ` |
| 13 | </style> |
| 14 | `; |
| 15 | |
| 16 | export const Complete = () => Styles + ` |
| 17 | <section> |
| 18 | <header> |
| 19 | <h2>Complete</h2> |
| 20 | <span class="badge badge-complete">Complete</span> |
| 21 | </header> |
| 22 | </section> |
| 23 | `; |
| 24 | |
| 25 | export const Review = () => Styles + ` |
| 26 | <section> |
| 27 | <header> |
| 28 | <h2>Review</h2> |
| 29 | <span class="badge badge-review">5-10 Minutes</span> |
| 30 | </header> |
| 31 | </section> |
| 32 | `; |
| 33 |