blob: 3f9ec3ec8139900ce392ecc042cc014a6b8d74ef (
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
|
import type { Meta, StoryObj } from '@storybook/react';
import type { FormEventHandler } from 'react';
import { SettingsForm } from './settings-form';
const meta = {
component: SettingsForm,
title: 'Organisms/Forms/Settings',
} satisfies Meta<typeof SettingsForm>;
export default meta;
type Story = StoryObj<typeof meta>;
const doNothing: FormEventHandler = (e) => {
e.preventDefault();
return undefined;
};
export const Example: Story = {
args: {
onSubmit: doNothing,
},
};
|