Overview
Form
Navigation
Data Display
Organism
© 2026 SmartRest POS
Components
Form
ShadcnAccessible form components built with Formsnap, Superforms, and Zod validation.
Dependencies
Form components require additional dependencies for validation and form handling.
Components
Form.Field- Wrapper for a single form fieldForm.Control- The actual form control (input, select, etc.)Form.Label- Accessible label for the fieldForm.Description- Helper text for the fieldForm.FieldErrors- Validation error messagesForm.Button- Submit button with loading stateForm.Fieldset- Group related fieldsForm.Legend- Title for fieldset
Preview
Usage
Validation
Form validation is handled by Zod schemas via sveltekit-superforms. The validation runs on both client and server.
- ✓ Client-side validation with immediate feedback
- ✓ Server-side validation for security
- ✓ Accessible error messages
- ✓ Custom error styling