Block · C-060 · erp
FormSection
A form section with fieldset, legend and a one- or two-column grid. It groups related fields so reading and validation have a clear boundary.
Install
Blocks compose Koten primitives; install koten-theme first.
npx shadcn@latest add https://koten.codehive.com.co/r/form-section.jsonAnatomy
This block composes Koten primitives. Read the source files before changing it.
- @/components/patterns/form-section.tsx
- @/lib/koten/cn.ts
- @/lib/koten/format.ts
- @/lib/koten/intl.ts
- @/lib/koten/labels.ts
- @/lib/koten/provider.tsx
Accessibility
- fieldset and legend group the fields; the legend is the group name, not a decorative title.
- columns only changes the grid: DOM order remains the reading and tab order.
- Errors come through Field (aria-invalid and aria-describedby); do not write them as loose text.
- The section submits nothing: the form, submit button and confirmation live outside.