UNPKG

@eureca/eureca-ui

Version:

UI component library of Eureca's user and admin apps

20 lines (16 loc) 510 B
import React, { useState } from 'react'; import { text, withKnobs } from '@storybook/addon-knobs'; import { TimePicker } from '../'; export default { title: 'Material/Pickers', decorators: [withKnobs], includeStories: [] }; export function TimePickerStory() { const [time, setTime] = useState(null); const label = text('Label', 'Selecione um horário'); return ( <TimePicker name="component-name" label={label} value={time} onChange={value => setTime(value)} /> ); }