UNPKG

@navinc/base-react-components

Version:
36 lines (32 loc) 728 B
import React from 'react' import readme from './card-insight.readme.md' import { StandardCard } from './standard-card.js' import { CardInsight } from './card-insight.js' export default { title: 'General/CardInsight', component: CardInsight, parameters: { readme: { content: readme }, }, } export const Basic = (args) => { return ( <StandardCard> <CardInsight {...args} /> </StandardCard> ) } Basic.argTypes = { type: { type: 'select', options: ['improve', 'positive', 'neutral'], }, } Basic.args = { type: 'neutral', title: 'This is the title', copy: 'this is the copy', action: 'yourFunction()', actionHref: '/link', actionLabel: 'Action label. Actions are optional', }