Components

Field ​

Field is Craft-style field layout around a control — label, instructions, errors, warnings, tips, and optional header actions.

Standalone Labels ​

Control-level label and instructions can live on Input (and similar controls) without wrapping in Field.

Errors and Warnings ​

Use required, warning, and the errors slot around an invalid control. Tip and instruction values can include inline Markdown.

Translatable ​

translatable shows the translation icon beside the field label.

Tip ​

tip renders helper text below the control.

Header End ​

Trailing header actions go in slot="header-end" — for example a small “Bulk add” button.

API ​

Slots ​

NameDescription
labelField label
instructionsHelp text below the label (property values support inline Markdown)
hintAlias for instructions
header-endExtra header actions (React headerEnd)
errorsCustom error content (property values support inline Markdown)
warningWarning message (property values support inline Markdown)
tipInformational tip below the control (property values support inline Markdown)
(default)Field control (pk-input, pk-select, etc.)

Props ​

NameDescription
forAssociates the label with a control id in the light DOM.
Type string
instructionsType string
labelType string
requiredType boolean
Default false
tipType string
translatableShows the translatable-field icon beside the label.
Type boolean
Default false
warningType string

CSS Parts ​

NameDescriptionCSS selector
controlControl slot wrapper::part(control)
errorsErrors list::part(errors)
form-controlRoot wrapper::part(form-control)
headerField header row::part(header)
header-endTrailing header actions::part(header-end)
instructionsInstructions region::part(instructions)
labelLabel element::part(label)
tipTip region::part(tip)
warningWarning region::part(warning)
Edit this page
Last updated: Sep 9, 2026, 7:18 PM