@wonderflow/react-components
Version:
UI components from Wonderflow's Wanda design system
23 lines (22 loc) • 547 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { Datetime } from './datetime';
const story = {
title: 'Widgets/Datetime',
component: Datetime,
argTypes: {
locale: { type: 'string' },
},
args: {
locale: 'it-IT',
date: '2021-12-15T16:00:32.507981+00:00',
},
};
export default story;
const Template = args => _jsx(Datetime, { ...args });
export const Default = Template.bind({});
Default.args = {
date: '2021-12-15T16:00:32.507981+00:00',
options: {
year: '2-digit',
},
};