UNPKG

@swrve/core

Version:

Core set of Swrve UI Components

31 lines (26 loc) 595 B
import React from 'react' import { MemoryRouter } from 'react-router' import IconLink from './icon-link' const WrapperDecorator = Story => ( <MemoryRouter initialEntries={['/']}> <Story /> </MemoryRouter> ) export default { title: 'Core/IconLink', decorators: [WrapperDecorator], component: IconLink } export const ABasicIconLinkComponent = args => { return ( <IconLink toggle={true} iconName="email" label="Some Label" link="/test" className="" {...args} /> ) } ABasicIconLinkComponent.storyName = 'A basic icon link component'