UNPKG

@eureca/eureca-ui

Version:

UI component library of Eureca's user and admin apps

20 lines (16 loc) 507 B
import React, { useState } from 'react'; import { text, withKnobs } from '@storybook/addon-knobs'; import { DatePicker } from '../'; export default { title: 'Material/Pickers', decorators: [withKnobs], includeStories: [] }; export function DatePickerStory() { const [date, setDate] = useState(null); const label = text('Label', 'Selecione uma data'); return ( <DatePicker name="component-name" label={label} value={date} onChange={value => setDate(value)} /> ); }