UNPKG

748 BJavaScriptView Raw
1import React from 'react';
2import Token from './Token';
3import { noop } from '../../utils';
4export default {
5 title: 'Components/Token',
6 component: Token,
7};
8const Template = (args) => React.createElement(Token, { ...args });
9export const Interactive = Template.bind({});
10Interactive.args = {
11 children: 'This is an interactive token',
12 onRemove: noop,
13};
14export const Static = Template.bind({});
15Static.args = {
16 children: 'This is a static token',
17 readOnly: true,
18};
19export const Anchor = Template.bind({});
20Anchor.args = {
21 children: 'This is a link token',
22 href: '#',
23 readOnly: true,
24};
25export const Disabled = Template.bind({});
26Disabled.args = {
27 children: 'This is a disabled token',
28 disabled: true,
29};