List
The List component provides a layout for displaying lists of records with automatic header, breadcrumb, and action buttons.Basic Usage
- Ant Design
- Material UI
- Mantine
- Chakra UI
Props
| Prop | Type | Description |
|---|---|---|
title | ReactNode | Custom page title |
resource | string | Resource name (auto-detected from route) |
canCreate | boolean | Show/hide create button |
createButtonProps | object | Props for the create button |
breadcrumb | ReactNode | Custom breadcrumb component |
headerButtons | ReactNode | function | Custom header buttons |
headerButtonProps | object | Props for header button container |
wrapperProps | object | Props for wrapper element |
contentProps | object | Props for content element |
Custom Header Buttons
Create
The Create component provides a layout for creating new records with automatic save button and navigation.Basic Usage
- Ant Design
- Material UI
Props
| Prop | Type | Description |
|---|---|---|
title | ReactNode | Custom page title |
resource | string | Resource name (auto-detected from route) |
saveButtonProps | object | Props for the save button |
isLoading | boolean | Loading state |
breadcrumb | ReactNode | Custom breadcrumb component |
headerButtons | ReactNode | function | Custom header buttons |
footerButtons | ReactNode | function | Custom footer buttons |
goBack | ReactNode | Custom back button |
wrapperProps | object | Props for wrapper element |
contentProps | object | Props for content element |
headerProps | object | Props for header element |
footerButtonProps | object | Props for footer button container |
Custom Footer Buttons
Edit
The Edit component provides a layout for editing existing records with automatic data fetching and save button.Basic Usage
- Ant Design
- Material UI
Props
Same as Create component, plus:| Prop | Type | Description |
|---|---|---|
recordItemId | string | number | Record ID to edit |
canDelete | boolean | Show/hide delete button |
deleteButtonProps | object | Props for the delete button |
With Delete Button
Show
The Show component provides a layout for displaying a single record in read-only mode.Basic Usage
- Ant Design
- Material UI
Props
| Prop | Type | Description |
|---|---|---|
title | ReactNode | Custom page title |
resource | string | Resource name (auto-detected from route) |
recordItemId | string | number | Record ID to show |
isLoading | boolean | Loading state |
canEdit | boolean | Show/hide edit button |
canDelete | boolean | Show/hide delete button |
breadcrumb | ReactNode | Custom breadcrumb component |
headerButtons | ReactNode | function | Custom header buttons |
footerButtons | ReactNode | function | Custom footer buttons |
goBack | ReactNode | Custom back button |
With Action Buttons
Advanced Features
Modal/Drawer Forms
Use modal or drawer for create/edit operations:- Modal (Ant Design)
- Drawer (Ant Design)
Auto-Save Forms
Enable auto-save for forms:Best Practices
- Consistent Layouts: Use CRUD components for consistent UI
- Loading States: Always show loading indicators
- Error Handling: Display validation errors clearly
- Breadcrumbs: Help users navigate back
- Action Buttons: Provide clear calls-to-action
- Responsive Design: Test on mobile devices
Next Steps
Field Components
Display data with field components
Button Components
Add action buttons
Forms
Learn about form hooks
Tables
Work with table data