Skip to main content

error

Description

defines whether error styling is applied to the control's label

Type

boolean

Default value

false

Example

<Field 
label="Text"
let:id
error={true}>
<Text {id} error/>
</Field>

Details

The property is useful during a form validation. If the value of a nested control fails validation and you want to make its label red, set the field's error property to true.

Related article: Styling a validation error

Related sample: Field