Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ephraimduncan/blocks/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Form layout blocks provide pre-built form structures with different field arrangements and styling patterns. From workspace settings to plan selection, these components help you create consistent, accessible forms quickly.Available Blocks
Form with Workspace Fields
Workspace or organization settings form with standard fields
Form with Side Labels
Form layout with labels positioned to the left of inputs
Form with Checkbox Settings
Settings form with multiple checkbox options and toggles
Form with Package Selection
Form featuring package or tier selection cards
Form with Plan Selection
Subscription or pricing plan selection form with comparison layout
Layout Patterns
Stacked Layout
Traditional vertical form layout with labels above inputs. Best for most use cases and mobile-friendly.Side Label Layout
Labels positioned to the left of inputs. Good for dense forms where horizontal space is available.Settings Layout
Checkboxes and toggles with descriptions. Perfect for preferences and configuration forms.Selection Cards
Visual card-based selection for packages, plans, or options. Helps users compare choices.Use Cases
User Settings
User Settings
Create account settings, preferences, or profile editing forms with organized field groups and clear labels.
Workspace Configuration
Workspace Configuration
Build team or organization setup forms with workspace name, settings, and member management.
Onboarding Forms
Onboarding Forms
Guide new users through setup processes with clear, step-by-step form layouts.
Plan Selection
Plan Selection
Implement pricing plan or package selection interfaces with visual comparison cards.
Feature Toggles
Feature Toggles
Manage application features or permissions with checkbox settings forms.
Implementation Example
Form Validation
Implement comprehensive validation for better user experience:Use libraries like Zod or Yup for schema validation combined with react-hook-form for optimal performance and developer experience.
Best Practices
Form Design
- Group Related Fields: Use fieldsets or sections to organize related inputs
- Clear Labels: Every input should have a descriptive label
- Help Text: Provide hints or examples for complex fields
- Required Indicators: Mark required fields clearly (asterisk or label)
- Appropriate Input Types: Use correct HTML input types for better mobile UX
Validation & Errors
- Inline Validation: Show errors near the relevant field
- Real-time Feedback: Validate as users type (with debouncing)
- Clear Error Messages: Be specific about what’s wrong and how to fix it
- Success States: Confirm when fields are valid
- Form-level Errors: Show general submission errors prominently
User Experience
- Logical Tab Order: Ensure keyboard navigation flows naturally
- Auto-focus: Focus the first field when form loads
- Save Progress: Auto-save or warn before losing data
- Loading States: Show feedback during submission
- Success Feedback: Confirm successful submissions clearly
Accessibility
Ensure your forms are accessible to all users:Accessibility Checklist
- All inputs have associated labels
- Required fields are marked and announced
- Error messages are linked to inputs via aria-describedby
- Form has a clear submit button
- Keyboard navigation works throughout
- Screen readers can navigate form structure
- Color is not the only indicator of errors
Plan Selection Forms
For pricing or package selection:Common Field Types
| Field Type | Use Case | Example |
|---|---|---|
| Text | Names, titles, short text | <input type="text"> |
| Email addresses | <input type="email"> | |
| Password | Passwords | <input type="password"> |
| Textarea | Long text, descriptions | <textarea> |
| Select | Dropdown choices | <select> |
| Checkbox | Boolean options, multiple selections | <input type="checkbox"> |
| Radio | Single choice from options | <input type="radio"> |
| File | File uploads | <input type="file"> |
Related Components
- Login - Authentication forms
- Dialogs - Modal forms
- File Upload - File input components
- Onboarding - Multi-step form flows