import { Meta , Story } from '@storybook/react' ; import { DataRow , IDataProps } from './DataRow' ; import React from 'react' ; export default { title : 'Components/Interface/ViewData/DataRow' , component : DataRow } as Meta ; const Template = ( args ) => < DataRow { ... args } / > ; export const DataRowView = Template . bind ( { } ) ; DataRowView . args = { label : 'Name' , value : 'John Smith' , action : { label : 'Change' , handler : ( ) => alert ( 'Change' ) } } ;