UNPKG

@navinc/base-react-components

Version:
39 lines (35 loc) 1 kB
import React from 'react' import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import readme from './readme.md' import Card from './' storiesOf('__ | Deprecated', module).add( 'Card', () => { const onBack = 'function()' const onDismiss = 'function()' const onNext = 'function()' const onToggleKebab = 'function()' const onUndo = 'function()' return ( <Card buttonLabel="Click this" cardLabel="Some cool label" title="Really fantastic title" kebabMenuItems={[{ label: 'hide', icon: 'foo' }]} onBack={onBack && action(onBack)} onDismiss={onDismiss && action(onDismiss)} onNext={onNext && action(onNext)} onToggleKebab={onToggleKebab && action(onToggleKebab)} onUndo={onUndo && action(onUndo)} buttonDisabled={false} buttonForm="" > Body content goes here! </Card> ) }, { readme: { content: readme }, } )