Logbook
Form with validation. Your rules, and error messages that say what went wrong and how to fix it.
- Component
- Form with validation
- Pattern
- Native form + error summary
- Outputs
- React + Tailwind, HTML/CSS/JS
- Status
- In stock, tested
Test bench
Runs the exported code, not a mock-up.
Logbook · React + TailwindFull width
| Keys | What happens |
|---|---|
| TaborShift + Tab | Move between the fields in reading order. |
| Space | Tick or untick a checkbox, or open a choice list. |
| Enter | In a single-line field: send the form. |
| Enter | On an error summary link: jump to the field that needs fixing. |
Take it home
React + Tailwind CSS v4: install with one command, or copy the file. Your options are already in it.
npx shadcn@latest add "/r/form.json"Run it in your project root. It writes components/form.tsx with the options you set here. Needs Tailwind CSS v4 and a project set up for the shadcn CLI (npx shadcn@latest init).