Job board

Text area

A text area takes several lines of typed text, such as the message on the contact form. Value says whether it holds one — off shows the empty field, on shows Value text — and Validation=Error marks a value the form rejected.

Design
Finished
Level
Draft
Audit
1 open findingat the audit of
Last changed

Preview

Text area, default variant as designedText area, default variant as designed
Default variant as designed, light modedark modeOpen in Figma

Usage

Do

  • Set the label, the required marker and the description on the nested _Label — "Message", required
  • Choose Validation and Value first, then Disabled, and leave State to code
  • Write the error message as what to change, not what went wrong

Don't

Behaviour

  • Validation=Error adds _Error message beneath the field
  • Interactive states (Focus, Hover) and Disabled are managed by code and not applied in static designs

Composition

  • Contains _Label, which carries the field's label, its Required marker and an optional description
  • Contains _Error message, revealed by Validation=Error

Dependencies in Figma

Built from_Error message_Error message_Label_LabelText areaText area

Level checks

Draft · next level blocked by Errors open

The ladder's checks for Text area
CheckLevelResult
AuditedReadyPasses
No errors openReady1 error open
Has a descriptionReadyPasses
Usage and Don't writtenReadyChecked at the next audit
Every layer namedReadyPasses
In codeReadyPasses
No warnings openStablePasses
Code gen notes writtenStableChecked at the next audit
Auto layout throughoutStableChecked at the next audit
Matches the designStablePasses

Anatomy

12
Every option switched on: what the component can contain, not how it is usually used
#PartShownComponent
1LabelAlways_Label
2ValueBy Value–

Properties

Text area: each property, its type, values and default
PropertyTypeValuesDefault
DisabledVariant
FalseTrue
False
ValidationVariant
NoneError
None
StateVariant
RestFocusHover
Rest
Value textTextany textValue
ValueBooleantrue, falsefalse

States

StateSet by
FocusInteraction
HoverInteraction
DisabledThe Disabled property

Implementation

What code builds differently from the drawing, and why
FigmaCodeWhy
Input, inside strokeborder with box-sizing: border-box and padding less the stroke, or box-shadow: inset 0 0 0 <width>Figma's inside stroke takes no space; a border does.
Focus ring, a layer 4px outside the boxoutline on :focus-visible, outline-offset 4px less the ring's widthFigma has no focus state, so it draws the ring as a layer; in code it is not an element.
Disableddisabled, or aria-disabled where it must stay focusableThe element's own state: the browser keeps it out of the tab order and out of form submission.
Validationaria-invalid, the message tied by aria-describedbyThe error is announced, not only drawn.
State: Focus, Hover:focus-visible, :hoverPseudo-classes the browser sets, so a template cannot claim a state the control is not in.

Changes on 4 Nov
ChangeTypeFigma filesCodeDetails
Content: heightRestyledBreakingMinor
Label: heightRestyledBreakingMinor
*: heightRestyledBreakingMinor
Input: positionRestyledBreakingMinor
Text area: height · 2 variantsRestyledBreakingMinor
_Error message: heightRestyledBreakingMinor
_Error message: positionRestyledBreakingMinor
circle-alert: positionRestyledBreakingMinor
Label: positionRestyledBreakingMinor
Value: heightRestyledBreakingMinor
Label: text styleRestyledMinorMinor
*: text styleRestyledMinorMinor
Value: text styleRestyledMinorMinor
Label: line heightRestyledMinorMinor
Label: letter spacingRestyledMinorMinor
*: line heightRestyledMinorMinor
*: letter spacingRestyledMinorMinor
Value: line heightRestyledMinorMinor
Value: letter spacingRestyledMinorMinor

Changes on 19 Sept
ChangeTypeFigma filesCodeDetails
DescriptionDocsPatchPatch

Changes on 16 Sept
ChangeTypeFigma filesCodeDetails
Label: propsRestyledMinorMinor

Changes on 6 Sept
ChangeTypeFigma filesCodeDetails
Input: strokeRestyledMinorMinor

Changes on 2 Sept
ChangeTypeFigma filesCodeDetails
Value: fillRestyledMinorMinor

Changes on 1 Sept
ChangeTypeFigma filesCodeDetails
Layer circle-alertAddedMinorPatch
Layer LabelAddedMinorPatch
Content: heightRestyledBreakingMinor
Label: heightRestyledBreakingMinor
*: heightRestyledBreakingMinor
Input: positionRestyledBreakingMinor
Text area: height · 2 variantsRestyledBreakingMinor
_Error message: heightRestyledBreakingMinor
_Error message: positionRestyledBreakingMinor
Value: heightRestyledBreakingMinor
circle-alert: positionRestyledBreakingMinor
Label: positionRestyledBreakingMinor
Label: line heightRestyledMinorMinor
*: line heightRestyledMinorMinor
_Error message: overridesRestyledMinorMinor
Value: line heightRestyledMinorMinor
Instances re-pointed (14 layers)ChangedBreakingMinor
Label: propsRestyledMinorMinor
ComponentAddedMinorMinor