readonly
Description
Optional. Defines whether an input is read-onlyUsage
readonly?: boolean;
Parameters
- true - the read-only mode is on
- false - (default) the read-only mode is off
Example
<Text value="A display-only field" readonly={true} />
Details
The property can also be enabled without a value:
<Text value="A display-only field" readonly />
Related article: Setting the read-only mode