Job board

Search input

A search input takes a free-text query. Value says whether the field holds one — False shows Placeholder text, True shows Value text.

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

Preview

Search input, default variant as designedSearch input, default variant as designed
Default variant as designed, light modedark modeOpen in Figma

Usage

Do

  • Use for free-text query entry, where the possible answers are not a fixed list
  • Write Placeholder text as what to search, not as an instruction
  • Choose Value first, then Disabled, and leave State to code

Don't

  • Use for picking from a fixed list: use Dropdown input
  • Use the placeholder as the field's only label

Behaviour

  • Value switches between the placeholder and the entered value
  • Interactive states (Focus, Hover, Press) and Disabled are managed by code and not applied in static designs

Composition

  • Contains a search icon

Dependencies in Figma

Places 1 component from another library: Icon/search / Size=20. This snapshot does not hold them, so this page cannot link to them or describe them.

Level checks

Ready · next level blocked by Warnings open

The ladder's checks for Search input
CheckLevelResult
AuditedReadyPasses
No errors openReadyPasses
Has a descriptionReadyPasses
Usage and Don't writtenReadyChecked at the next audit
Every layer namedReadyPasses
In codeReadyPasses
No warnings openStableNot yet
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
1IconAlwayssearch
2LabelAlways–

Properties

Search input: each property, its type, values and default
PropertyTypeValuesDefault
ValueVariant
FalseTrue
False
DisabledVariant
FalseTrue
False
StateVariant
RestFocusHoverPress
Rest
Placeholder textTextany textSearch
Value textTextany textValue

States

StateSet by
FocusInteraction
HoverInteraction
PressInteraction
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.
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.
State: Focus, Hover, Press:focus-visible, :hover, :activePseudo-classes the browser sets, so a template cannot claim a state the control is not in.
Input, "Icon" sits inside the field, before the textThe icon sits over the field rather than inside it, and the text is pushed across with padding — so the measured gap will not match the drawn one, and that difference is waived once rather than per componentThe web cannot draw it as Figma does.

Changes on 4 Nov
ChangeTypeFigma filesCodeDetails
Label: text styleRestyledMinorMinor
Label: heightRestyledMinorMinor
Label: positionRestyledMinorMinor
Label: line heightRestyledMinorMinor
Label: letter spacingRestyledMinorMinor

Changes on 1 Nov
ChangeTypeFigma filesCodeDetails
Property linksNot gradedNot gradedNot graded

Changes on 19 Sept
ChangeTypeFigma filesCodeDetails
DescriptionDocsPatchPatch

Changes on 6 Sept
ChangeTypeFigma filesCodeDetails
Input: strokeRestyledMinorMinor

Changes on 1 Sept
ChangeTypeFigma filesCodeDetails
Label: heightRestyledMinorMinor
Label: positionRestyledMinorMinor
Label: line heightRestyledMinorMinor
Input: strokeRestyledMinorMinor

Changes on 21 Aug
ChangeTypeFigma filesCodeDetails
Nested component renamed (10 layers)Not gradedNot gradedNot graded
Its values movedRestyledMinorMinor
Layer IconAddedMinorPatch
ComponentAddedMinorMinor