@swrve/core
Version:
Core set of Swrve UI Components
23 lines (19 loc) • 654 B
JavaScript
import React from 'react'
import { withKnobs, boolean, text } from '@storybook/addon-knobs'
import { storiesOf } from '@storybook/react'
import { MemoryRouter } from 'react-router'
import IconLink from './icon-link'
const stories = storiesOf('Core|IconLink', module)
.addDecorator(story => <MemoryRouter initialEntries={['/']}>{story()}</MemoryRouter>)
.addDecorator(withKnobs)
stories.add('A basic icon link component', () => {
return (
<IconLink
toggle={boolean('Toggle', true)}
iconName="email"
label={text('Label', 'Some Label')}
link={text('Link', '/test')}
className={text('ClassName', '')}
/>
)
})