Ant Design React component APIs and props.
Most components share common props:
className: Additional CSS classstyle: Inline style objectdisabled: Disabled stateloading: Loading statesize: Component size (large, middle, small)Props:
type: Button type (primary, default, dashed, text, link)size: Button size (large, middle, small)shape: Button shape (default, round, circle)icon: Icon componentloading: Loading statedisabled: Disabled stateonClick: Click handlerProps:
form: Form instance from Form.useForm()layout: Form layout (horizontal, vertical, inline)onFinish: Submit handleronFinishFailed: Failed submit handlerinitialValues: Initial form valuesForm.Item Props:
name: Field namelabel: Field labelrules: Validation rulesrequired: Required indicatorProps:
columns: Column definitionsdataSource: Table datapagination: Pagination configrowSelection: Row selection configonChange: Table change handlerColumn Props:
title: Column titledataIndex: Data field namekey: Unique keysorter: Sort functionrender: Custom render functionProps:
value: Input valuedefaultValue: Default valueplaceholder: Placeholder textsize: Input sizeprefix: Prefix elementsuffix: Suffix elementonChange: Change handlerProps:
value: Selected valuedefaultValue: Default valuemode: Selection mode (multiple, tags)showSearch: Enable searchonChange: Change handlerProps:
open: Modal visibilitytitle: Modal titleonOk: OK button handleronCancel: Cancel button handlerfooter: Custom footerwidth: Modal widthStatic Methods:
Modal.info(), Modal.success(), Modal.error(), Modal.warning(), Modal.confirm()