Files
react-test/docs/data/joy/components/input/InputFormProps.tsx.preview

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
428 B
Plaintext
Raw Normal View History

2025-12-12 14:26:25 +09:00
<form
onSubmit={(event) => {
event.preventDefault();
const formData = new FormData(event.currentTarget);
const formJson = Object.fromEntries((formData as any).entries());
alert(JSON.stringify(formJson));
}}
>
<Stack spacing={1}>
<Input placeholder="Try to submit with no text!" required />
<Input placeholder="It is disabled" disabled />
<Button type="submit">Submit</Button>
</Stack>
</form>