blob: d534f14c80d5e024f4713945ad42dca40ad5dfa7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
import type { ComponentMeta, ComponentStory } from '@storybook/react';
import { Time } from './time';
/**
* Time - Storybook Meta
*/
export default {
title: 'Atoms/Layout/Time',
component: Time,
argTypes: {
date: {
control: {
type: 'text',
},
description: 'A valid date string.',
type: {
name: 'string',
required: true,
},
},
},
} as ComponentMeta<typeof Time>;
const Template: ComponentStory<typeof Time> = (args) => <Time {...args} />;
/**
* Time Stories - Default
*/
export const Default = Template.bind({});
Default.args = {
date: '2022-03-15 10:44:20',
};
|