Sie ist Teil der Form-Field-Komponente.

| Nummer | Typ | Beschreibung | Optional | Hinweis |
|---|---|---|---|---|
| 1 | Standard-HTML | input | Nein | |
| 1b | Standard-HTML | input | Ja | Placeholder |
| 2 | Standard-HTML | input | Nein | |
| 3 | Komponente | sbb-icon | Ja | Prefix |
| 4 | Komponente | sbb-icon oder sbb-form-field-clear | Ja | Suffix |
| 5 | Komponente | sbb-form-error | Nein | Datei auswählen |
The sbb-error component can be used to provide an error message in inputs components like the
sbb-checkbox-group and
sbb-radio-button-group,
or within the sbb-form-field.
It is possible to provide the error message via an unnamed slot;
the component displays an icon by default, that can be changed using the icon slot.
<sbb-error> This is a required field. </sbb-error>
<sbb-error>
<sbb-icon name="pie-small" slot="icon"></sbb-icon>
This is a required field.
</sbb-error>
| Name | Attribute | Privacy | Type | Default | Description |
|---|---|---|---|---|---|
negative | negative | public | boolean | false | Negative coloring variant flag. |
| Name | Description |
|---|---|
| Use this slot to display the error message. | |
icon | Use this slot to override the default error icon. |