A simple dialog for editing user information, featuring a single input field with label and a save button.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.
Installation
Dependencies
This component requires the following dependencies:button- shadcn/ui button componentdialog- shadcn/ui dialog componentinput- shadcn/ui input componentlabel- shadcn/ui label component
Usage
Features
- Form input - Labeled input field for username
- Clean layout - Simple, focused design for single-field editing
- Full-width action - Save button spans the full width
- Proper labeling - Associated label with htmlFor attribute
- Medium width - Uses
sm:max-w-mdfor optimal form width - Accessible - Semantic form structure with proper labels
Component Structure
The component includes:Dialogwith state managementDialogTriggerbuttonDialogContentwith medium widthDialogHeaderwith title and description- Form field with
LabelandInputcomponents DialogFooterwith full-width save button- Controlled open state
This component demonstrates a basic edit form pattern. For multiple fields or more complex forms, consider using react-hook-form or similar form libraries for validation and state management.