forked from NHSDigital/nhsuk-react-components-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRibbonLink.stories.tsx
30 lines (28 loc) · 929 Bytes
/
RibbonLink.stories.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
import { storiesOf } from '@storybook/react';
import { RibbonLink } from '../src';
const stories = storiesOf('RibbonLink', module);
stories
.add('Cool Ribbon', () => (
<div className="ribbonlink-demo">
<RibbonLink flavour="cool">Cool Ribbon</RibbonLink>
</div>
))
.add('Mild Ribbon', () => (
<div className="ribbonlink-demo">
<RibbonLink flavour="mild">Mild Ribbon</RibbonLink>
</div>
))
.add('Hot Ribbon', () => (
<div className="ribbonlink-demo">
<RibbonLink flavour="hot">Hot Ribbon</RibbonLink>
</div>
))
.add('RibbonLink Bar', () => (
<RibbonLink.Bar className="ribbonlink-demo">
<RibbonLink flavour="cool">Cool Ribbon</RibbonLink>
<RibbonLink flavour="mild">Mild Ribbon</RibbonLink>
<RibbonLink flavour="hot">Hot Ribbon</RibbonLink>
</RibbonLink.Bar>
));