s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Forms and controls

FieldLabel

The one label treatment for generated form fields: a plain label above its control. Every field component (text, money, date, select, relation, …) and every read-only field display renders this, so size, weight, colour and spacing cannot drift between field types.

Public export

typescript
import { FieldLabel } from '@happyvertical/smrt-ui/forms';
Import path
@happyvertical/smrt-ui/forms
Props
4
Props described
4 of 4
Bindable state
0
Callback events
0
Verified release
0.57.40

Props

NameTypeRequiredDescription
labelstringYesLabel text.
forstringNoId of the labelled control (`for`). Omit for read-only displays.
idstringNoId of the label element, for `aria-labelledby` on the control.
requiredbooleanNoShows the required marker.

Bindable state

This component has no bindable public state.

Callback events

This component declares no callback event props.

Examples and explanation