--- order: 8 title: zh-CN: 自定义状态 en-US: Status --- ## zh-CN 使用 `status` 为 Mentions 添加状态。可选 `error` 或者 `warning`。 ## en-US Add status to Mentions with `status`, which could be `error` or `warning`。 ```tsx import { Mentions, Space } from 'antd'; import type { OptionProps } from 'antd/es/mentions'; import React from 'react'; const { Option } = Mentions; const onChange = (value: string) => { console.log('Change:', value); }; const onSelect = (option: OptionProps) => { console.log('select', option); }; const App: React.FC = () => { const options = ( <> ); return ( {options} {options} ); }; export default App; ```