import React from 'react' ; import { Meta , Story } from '@storybook/react' ; import { WarningMessage } from './WarningMessage' ; export default { title : 'Components/forms/WarningMessage' , component : WarningMessage } as Meta ; const Template = ( args ) => < WarningMessage { ... args } / > ; export const WarningMessageView = Template . bind ( { } ) ; WarningMessageView . args = { children : 'Simple Warning' } ;