@navinc/base-react-components
Version:
Nav's Pattern Library
30 lines (26 loc) • 623 B
JavaScript
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',
}