UNPKG

@navinc/base-react-components

Version:
38 lines (33 loc) 856 B
import React from 'react' import { Banner } from './banner.js' import readme from './banner.readme.md' export default { title: 'General/Banner', component: Banner, parameters: { readme: { content: readme }, }, } export const Basic = (args) => { return <Banner {...args} /> } Basic.argTypes = { type: { control: { type: 'select' }, options: ['missingInfoAction', 'improveAction', 'positiveAction', 'neutralAction', 'warning', 'error'], }, } Basic.args = { type: 'neutralAction', icon: '', actionIcon: '', title: 'This is a banner', copy: 'Do as the banner says or perish', action: 'yourFunction()', actionHref: '/link', actionLabel: 'Omit this to show the chevron on the banner', onDismiss: 'yourFunction()', shouldHideBorder: false, CDNIllustrationIcon: '', children: 'Optional Children Live Here!', }