ant-design/components/cascader/demo/status.md
MadCcc 533bc8740a
feat: cascader support status (#34086)
* feat: cascader support status

* chore: code clean

* chore: raise bundle size limitation

* chore: code clean
2022-02-17 15:08:13 +08:00

564 B

order version title
16 4.19.0
zh-CN en-US
自定义状态 Status

zh-CN

使用 status 为 Cascader 添加状态,可选 error 或者 warning

en-US

Add status to Cascader with status, which could be error or warning.

import { Cascader, Space } from 'antd';

const Validation: React.FC = () => (
  <Space direction="vertical">
    <Cascader status="error" placeholder="Error" />
    <Cascader status="warning" multiple placeholder="Warning multiple" />
  </Space>
);

ReactDOM.render(<Validation />, mountNode);