UNPKG

@carbon/ibm-security

Version:

Carbon for Cloud & Cognitive IBM Security UI components

28 lines (27 loc) 878 B
/** * @file Tag wall stories. * @copyright IBM Security 2019 */ import { action } from '@storybook/addon-actions'; import { boolean, text } from '@storybook/addon-knobs'; import { storiesOf } from '@storybook/react'; import React from 'react'; import { patterns } from '../../../.storybook'; import { TagWall } from '../..'; import props from './_mocks_'; var items = props.items, label = props.label, addLabel = props.addLabel; var storyProps = function storyProps() { return { items: items, label: text('Label (label)', label), addLabel: text('Add button label (addLabel)', addLabel), disable: boolean('Disabled (disable)', false), onChange: action('onChange'), onAddButton: action('onAddButton') }; }; storiesOf(patterns('TagWall'), module).add('Default', function () { return /*#__PURE__*/React.createElement(TagWall, storyProps()); });