We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0a6baee + 8789e07 commit 2fc77cfCopy full SHA for 2fc77cf
1 file changed
packages/storybook/src/DateInputGroup.stories.tsx
@@ -95,7 +95,22 @@ function InvalidStory(args: React.ComponentProps<typeof DateInputGroup>) {
95
// DEFAULT
96
// =============================================================================
97
98
-export const Default: Story = { render: (args) => <DefaultStory {...args} /> };
+export const Default: Story = {
99
+ parameters: {
100
+ docs: {
101
+ source: {
102
+ code: `const [value, setValue] = useState<DateInputGroupValue>({
103
+ day: '',
104
+ month: '',
105
+ year: '',
106
+});
107
+
108
+<DateInputGroup id="datum" value={value} onChange={setValue} />`,
109
+ },
110
111
112
+ render: (args) => <DefaultStory {...args} />,
113
+};
114
115
116
// VARIANTEN
0 commit comments