如何在语义-ui-react 的输入中添加最大长度?

How to add max length in input of semantic-ui-react?

最大长度在语义输入中不起作用-ui-react.

<Input {...input} type={type} size={inputSize} transparent={transparent} disabled={disabled}>
   <input data-selector={`${dataSelector}-input`} maxlength="2" />
</Input>

你错过了首都

例如maxLength="2"