id
Description
Optional. Defines the id for the input and label generated by the Field componentUsage
id?: string | false;
Parameters
- If it's a string, it sets an
idfor the input element and the label created by the Field component. falseprevents Field from generating the id and labelundefined- (default) the id is generated automatically
Example
<Field label="Text" id="user-name">
<Text/>
</Field>