CreateButton
Navigate to the create page for a resource.Basic Usage
- Ant Design
- Material UI
- Mantine
- Chakra UI
Props
| Prop | Type | Description |
|---|---|---|
resource | string | Resource name (auto-detected from route) |
meta | object | Meta data for navigation |
hideText | boolean | Hide button text, show icon only |
accessControl | object | Access control configuration |
onClick | function | Custom click handler |
Examples
EditButton
Navigate to the edit page for a record.Basic Usage
Props
| Prop | Type | Description |
|---|---|---|
recordItemId | string | number | Record ID to edit |
resource | string | Resource name |
meta | object | Meta data for navigation |
hideText | boolean | Hide button text |
accessControl | object | Access control configuration |
Examples
ShowButton
Navigate to the show page for a record.Basic Usage
Props
Same as EditButton.Examples
DeleteButton
Delete a record with confirmation dialog.Basic Usage
Props
| Prop | Type | Description |
|---|---|---|
recordItemId | string | number | Record ID to delete |
resource | string | Resource name |
meta | object | Meta data for mutation |
hideText | boolean | Hide button text |
confirmTitle | string | Confirmation dialog title |
confirmOkText | string | Confirmation OK button text |
confirmCancelText | string | Confirmation cancel button text |
onSuccess | function | Success callback |
accessControl | object | Access control configuration |
Examples
ListButton
Navigate to the list page for a resource.Basic Usage
Props
| Prop | Type | Description |
|---|---|---|
resource | string | Resource name |
meta | object | Meta data for navigation |
hideText | boolean | Hide button text |
Examples
RefreshButton
Refresh the current page data.Basic Usage
Props
| Prop | Type | Description |
|---|---|---|
resource | string | Resource name |
recordItemId | string | number | Record ID |
hideText | boolean | Hide button text |
onClick | function | Custom click handler |
Examples
SaveButton
Submit a form.Basic Usage
Props
| Prop | Type | Description |
|---|---|---|
hideText | boolean | Hide button text |
loading | boolean | Loading state |
disabled | boolean | Disabled state |
onClick | function | Custom click handler |
Examples
CloneButton
Clone a record by navigating to create page with pre-filled data.Basic Usage
Props
| Prop | Type | Description |
|---|---|---|
recordItemId | string | number | Record ID to clone |
resource | string | Resource name |
meta | object | Meta data for navigation |
hideText | boolean | Hide button text |
Examples
ExportButton
Export table data to CSV or Excel.Basic Usage
Props
| Prop | Type | Description |
|---|---|---|
hideText | boolean | Hide button text |
loading | boolean | Loading state |
onClick | function | Custom export handler |
Custom Export
ImportButton
Trigger import functionality for bulk data upload.Basic Usage
Props
| Prop | Type | Description |
|---|---|---|
hideText | boolean | Hide button text |
loading | boolean | Loading state |
onClick | function | Custom import handler |
Button Groups
Combine multiple buttons together:- Ant Design
- Material UI
- Mantine
- Chakra UI
Access Control
Buttons automatically respect access control rules:Custom Buttons
Create custom action buttons using Refine hooks:Best Practices
- Icon Only Buttons: Use
hideTextfor compact layouts like tables - Loading States: Buttons show loading automatically during mutations
- Confirmations: Use confirmation dialogs for destructive actions
- Access Control: Rely on built-in access control integration
- Consistent Placement: Place action buttons in consistent locations
- Mobile Friendly: Test button groups on mobile devices
Common Patterns
List Page Header
Show Page Header
Edit Page Header
Table Action Column
Next Steps
CRUD Components
Build data interfaces
Field Components
Display data fields
Navigation
Learn about navigation hooks
Access Control
Implement access control