Repository navigation
11 Ful inputs
The text-like fields: ful-input (and its textarea flavor), ful-checkbox, ful-radio-group. For files see files, for dates and times temporals, for combos select.
All three share the protocols every field follows: disabled claims, readonly, required → aria-required, setCustomValidity, change events with { value } details, input-* forwarding; Enter submits the surrounding form on ful-input and its derivatives (checkbox and radio-group have no Enter behavior).

A single-line input of any native type, or a textarea. It is form-associated, with its inner control detached from outer forms.
| Attribute | Type | Default | Description |
|---|---|---|---|
type |
string | text |
any native input type; the literal textarea renders a <textarea>
|
value |
string | null |
blank normalizes to null
|
placeholder |
string | hint inside the control | |
readonly |
presence | inner readOnly + host reflection | |
required |
presence |
aria-required on the inner control |
|
keep |
string | regex source; only what it matches survives a keystroke, the caret staying among the survivors. keep="[0-9]" is digits only |
|
reject |
string | the same statement from the other side: what it matches is stripped. reject="[^0-9]" is also digits only |
|
uppercase |
presence | value getter upper-cases | |
trim |
presence | value getter trims | |
v-type |
string |
number: the value getter decodes to a number, an explicit opt in like the select's k-type. Blank stays null, and a value that does not decode is kept as it is; an undeclared type defaults to number (a declared one wins) |
|
input-* |
any | forwarded to the inner control |
<ful-input name="vat" keep="[0-9A-Z]" required>
VAT number
<template slot="info">as printed on the invoice</template>
</ful-input>keep and reject are the same filter described from either side, so declare whichever reads straight:
<ful-input keep="[0-9]">Digits only</ful-input>
<ful-input reject="\s">No whitespace</ful-input>Reach for keep when you are naming what is allowed, which is most of the time, and reject when you are naming what is not. Spelling an allowed set as a rejection is a double negative, and it is the shape that made the mask attribute it replaces read backwards.
keep matches rather than negating, so it takes a pattern and not only a character class: keep="[0-9]{2}" keeps digit pairs and drops a lone digit. Both are configuration, read once when the element upgrades, so they say how the control treats what is typed into it rather than tracking a value that changes. A pattern that does not compile is warned once and then behaves as no filter at all, and declaring both warns once and applies keep.
default (the label), info (label-adjacent hint area), before/after (inside ful-affix cells, for icons, buttons and @ signs).
change, with { value } in its detail: the inner input's change, republished from the host.

A checkbox or a switch, its label beside the control stretched across the row and wired to it through aria (the whole row is the hit area).
| Attribute | Type | Default | Description |
|---|---|---|---|
value |
boolean | false |
the checked state |
type |
string | check |
switch renders a role="switch" toggle |
readonly |
presence | the gesture is refused inside the ful-choice: clicks do not toggle, the box stays focusable and readable, the value still submits |
|
required |
presence | aria-required |
|
input-* |
any | forwarded to the inner input |
Slots: default (the label), info. change detail: { value: boolean }, exactly one per toggle.
<ful-checkbox name="marketing" type="switch">
Send me the newsletter
</ful-checkbox>
A fieldset of radios authored as placeholder children. The text of each ful-radio is its label, and its attributes land on the native input.
<ful-radio-group name="size" value="m">
Pick a size
<ful-radio value="s">Small</ful-radio>
<ful-radio value="m">Medium</ful-radio>
<ful-radio value="l">Large</ful-radio>
<template slot="header">sizes run one small</template>
</ful-radio-group>| Attribute | Type | Default | Description |
|---|---|---|---|
value |
string / boolean | null |
checks the matching radio (null unchecks all) |
type |
string |
boolean: values decode to real booleans |
|
readonly |
presence | picking is refused inside the fieldset; the radios stay focusable and the value still submits | |
input-* |
any | forwarded to every generated input |
Slots: default (becomes the <legend>, hosts the ful-radio placeholders), header, footer.
An absent name is auto-generated (a unique id): groups never leak into each other, and the generated inner inputs carry a -ignore suffix plus form="" so only the host submits. The change detail is { value }, carrying the checked radio's value, a boolean under type="boolean", and null when none is checked.
The default slot is the label, rendered as a real <label> or <legend> wired to the control. Screen readers get the association for free, and clicking the text toggles or focuses the control.
ftl
httpc
ful
- Getting started
- Fields
- Forms
- Inputs
- Select
- Files
- Temporal inputs
- Tables
- Disclosures
- Navigation
- Async sections
- Timing and storage
- Theming
Extending
Reference
Project