import {FormTimeField} from "ui"; import {ArgsTable, Meta, Story} from "@storybook/addon-docs"; <Meta title="Components/Inputs/FormTimeField/old" component={FormTimeField}/> export const Template = (args) => ( <FormTimeField {...args} value={args.value && args.value !== 0 ? args.value : undefined} /> ); # FormTimeField This component renders an FormTimeField. ## Props <ArgsTable story="Default"/> ## Examples <Story name="Default" args={{ id: "example", label: "Label", labelIcon: "funnel", placeholder: "Placeholder text", value: undefined, onChange: () => { }, required: true, min: "00:00", max: "23:59", disabled: false, caption: "" }} > {Template.bind({})} </Story>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter