UNPKG

@navinc/base-react-components

Version:
30 lines (26 loc) 623 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.args = { type: 'neutral', title: 'This is the title', copy: 'this is the copy', action: 'yourFunction()', actionHref: '/link', actionLabel: 'Action label. Actions are optional', }