Skip to content
Component passports token-kit

Field

Field. Baseline: labelled input. Progressive layers: hint → describedby; error → invalid + error text; required → announced; control=select|textarea → same wiring, native control (works without JS).

Evidence

What the kit's own checks measured on this component, from their committed records. A result is what was found, not a certificate.

CheckWhat it measuresResultWhen
Contrastevery text and boundary pair labelled with its elements, in every pack, surface and density the fixture holds84 pairs, 0 failed; closest 6.15:1 for field/hint (tk / sunken / default), needs 4.5:12026-11-27
Controlsevery prop reachable from a story's controls17 stories opened; none flagged2026-11-28
Radiuscorner radii from the kit's scale only17 stories opened; none flagged2026-11-28
Attributesonly valid data-tk attributes and values17 stories opened; none flagged2026-11-28
Titleseach story has a heading and a title17 stories opened; none flagged2026-11-28
Accessibility (axe)axe-core on each story, at desktop and phone width17 stories opened; none flagged2026-11-28
Reflow at 320pxeach story at 320px wide: no sideways scroll17 stories opened; none flagged2026-11-28
Forced colourseach story in Windows high contrast17 stories opened; none flagged2026-11-28
Reduced motioneach story with reduced motion: nothing keeps moving17 stories opened; none flagged2026-11-28
Events (what it reports)each event its contract declares, triggered and checked; nothing undeclared, no vendor called17 stories opened; none flagged2026-11-28
Right to lefteach story set right to left: nothing pushed off the page17 stories opened; none flagged2026-11-28
Text 40% longerevery text made about 40% longer: no words cut, no sideways scroll17 stories opened; none flagged2026-11-28
Design matches codethe Figma component laid over the rendered code, per skinField: mean Δ 1.99, worst 7.33 over 9 skins; FieldAffix: mean Δ 1.48, worst 1.48 over 1 skin; FieldPassword: mean Δ 1.3, worst 1.3 over 1 skin; FieldCount: mean Δ 1.33, worst 1.33 over 1 skin; FieldWidths: mean Δ 0.54, worst 0.54 over 1 skin; FieldReadOnly: mean Δ 2.29, worst 2.29 over 1 skin2026-10-19
Figmawhere it is drawn in the Figma library6 components in the library; Code Connect linked; 9 Figma properties paired or decided
Tokensthe tk slots its CSS readsreads 16 tk slots

Not checked yet

Props

PropTypeRequiredIn Figma
labeltextyesField.Label
hinttextnoField.Hint, Field.Show hint
errortextnoField.Error
requiredbooleannoField.Required
optionalbooleannoField.Optional
controlinput | select | textareanoField.Control
chars2 | 3 | 4 | 10 | 20 | 30 | 5nonot drawn
prefixtextnonot drawn
suffixtextnonot drawn
revealbooleannonot drawn
maxCharsnumbernonot drawn
optionsothernonot drawn
idtextnonot drawn
childrencontentnonot drawn

Figma properties no prop takes

Tokens it reads

focus-color, focus-offset, focus-width, line-strong, radius-control, radius-nested, size-base, size-sm, space-2, space-3, status-danger-text, surface-sunken, text-primary, text-secondary, weight-medium, weight-normal