Prerequisites
Before you begin, make sure you have:- React 18+ installed
- Ant Design 6+ installed
- ProComponents installed (see Installation)
Your first ProTable
Let’s build a data table that fetches GitHub issues and displays them with search and filtering capabilities.ProTable automatically generates a search form based on your column definitions. Columns with
search: false won’t appear in the search form.Your first ProForm
Now let’s create a form with validation and multiple field types.Form layouts
ProComponents provides multiple form layouts for different use cases:- Modal Form
- Drawer Form
- Steps Form
Use
ModalForm to open forms in a modal dialog:Complete example
Here’s a complete working example combining ProTable with form actions:Key concepts
Value Types
Value Types
ProComponents automatically renders fields based on
valueType:text- Plain textdate/dateTime- Date formattingselect- Dropdown withvalueEnummoney- Currency formattingpercent- Percentage displaydigit- Number formattingprogress- Progress bar
Request Handling
Request Handling
The
request prop handles async data fetching:Action Ref
Action Ref
Use
actionRef to programmatically control the table:Search Form
Search Form
ProTable automatically generates a search form from columns:
- Add
search: falseto hide from search - Use
hideInTable: trueto show only in search - Customize with
search.labelWidth,search.collapsed
Common patterns
- Master-Detail
- Search + Create
- Batch Operations
Next steps
Explore Components
Learn about all available ProComponents
API Reference
Dive into detailed API documentation
Form Layouts
Explore different form layout options
Best Practices
Learn best practices and patterns