Form

A modular, composable form system with accessible inputs, textareas, custom selects, checkboxes, radio groups, switches, and animated validation messages.

Interactive Form System

Visible across your team members.

Automatic TLS Certificates

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/form

API Reference

PropTypeDefaultDescription
onSubmit(e: FormEvent) => voidundefinedForm submission handler
errorstring | booleanundefinedValidation error text or boolean trigger
showPasswordTogglebooleanfalseEnables eye icon toggle for password inputs
requiredbooleanfalseDisplays red asterisk and enforces requirement
leftIconReact.ReactNodeundefinedLeading icon inside input fields
rightIconReact.ReactNodeundefinedTrailing icon inside input fields