TextField
Display plain text values.Basic Usage
- Ant Design
- Material UI
- Mantine
- Chakra UI
Props
| Prop | Type | Description |
|---|---|---|
value | string | Text value to display |
NumberField
Display formatted number values with locale support.Basic Usage
Props
| Prop | Type | Description |
|---|---|---|
value | number | Number value to display |
locale | string | Locale for formatting (default: browser locale) |
options | Intl.NumberFormatOptions | Number format options |
Common Formatting Options
DateField
Display formatted date and time values.Basic Usage
Props
| Prop | Type | Description |
|---|---|---|
value | string | Date | Date value to display |
format | string | Date format string (dayjs format) |
locales | string | Locale for formatting |
Common Format Strings
EmailField
Display email addresses as clickable links.Basic Usage
Props
| Prop | Type | Description |
|---|---|---|
value | string | Email address |
UrlField
Display URLs as clickable links.Basic Usage
Props
| Prop | Type | Description |
|---|---|---|
value | string | URL to display |
children | ReactNode | Custom link text |
target | string | Link target attribute |
BooleanField
Display boolean values with icons or text.Basic Usage
- Ant Design
- Material UI
Props
| Prop | Type | Description |
|---|---|---|
value | boolean | Boolean value to display |
trueIcon | ReactNode | Icon for true value |
falseIcon | ReactNode | Icon for false value |
valueLabelTrue | string | Text for true value |
valueLabelFalse | string | Text for false value |
TagField
Display values as colored tags or badges.Basic Usage
- Ant Design
- Material UI
- Chakra UI
Props
| Prop | Type | Description |
|---|---|---|
value | string | Tag text |
color | string | Tag color |
icon | ReactNode | Tag icon |
ImageField
Display images with preview support.Basic Usage
Props
| Prop | Type | Description |
|---|---|---|
value | string | string[] | Image URL(s) |
width | number | Image width |
height | number | Image height |
title | string | Image alt/title text |
FileField
Display file download links.Basic Usage
Props
| Prop | Type | Description |
|---|---|---|
src | string | File URL |
title | string | Link text |
download | boolean | string | Download filename |
MarkdownField
Render markdown content as HTML.Basic Usage
Props
| Prop | Type | Description |
|---|---|---|
value | string | Markdown content |
Supported Markdown
The MarkdownField component supports:- Headers (#, ##, ###)
- Bold (text) and italic (text)
- Lists (ordered and unordered)
- Links (text)
- Code blocks (
code) - Tables (via remark-gfm)
- Strikethrough (via remark-gfm)
Using Fields in Tables
Ant Design Table
Material-UI DataGrid
Using Fields in Show Pages
Custom Field Components
Create your own field components:Best Practices
- Consistent Formatting: Use field components for consistent data display
- Null Safety: Handle null/undefined values gracefully
- Localization: Use appropriate locales for numbers and dates
- Performance: Use field components in table cells for better performance
- Accessibility: Ensure field components are screen-reader friendly
Next Steps
CRUD Components
Build data interfaces
Button Components
Add action buttons
Forms
Work with form data
Examples
See complete examples