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
- Resources
- Figma Propose a change
Preview


Usage
Do
- Use for free-text query entry, where the possible answers are not a fixed list
- Write
Placeholder textas what to search, not as an instruction - Choose
Valuefirst, thenDisabled, and leaveStateto code
Don't
- Use for picking from a fixed list: use
Dropdown input - Use the placeholder as the field's only label
Behaviour
Valueswitches between the placeholder and the entered value- Interactive states (
Focus,Hover,Press) andDisabledare managed by code and not applied in static designs
Composition
- Contains a
searchicon
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
| Check | Level | Result |
|---|---|---|
| Audited | Ready | Passes |
| No errors open | Ready | Passes |
| Has a description | Ready | Passes |
| Usage and Don't written | Ready | Checked at the next audit |
| Every layer named | Ready | Passes |
| In code | Ready | Passes |
| No warnings open | Stable | Not yet |
| Code gen notes written | Stable | Checked at the next audit |
| Auto layout throughout | Stable | Checked at the next audit |
| Matches the design | Stable | Passes |
Anatomy
| # | Part | Shown | Component |
|---|---|---|---|
| 1 | Icon | Always | search |
| 2 | Label | Always | – |
Properties
| Property | Type | Values | Default |
|---|---|---|---|
| Value | Variant | FalseTrue | False |
| Disabled | Variant | FalseTrue | False |
| State | Variant | RestFocusHoverPress | Rest |
| Placeholder text | Text | any text | Search |
| Value text | Text | any text | Value |
States
| State | Set by |
|---|---|
| Focus | Interaction |
| Hover | Interaction |
| Press | Interaction |
| Disabled | The Disabled property |
Implementation
| Figma | Code | Why |
|---|---|---|
| Input, inside stroke | border 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. |
Disabled | disabled, or aria-disabled where it must stay focusable | The 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, :active | Pseudo-classes the browser sets, so a template cannot claim a state the control is not in. |
| Input, "Icon" sits inside the field, before the text | The 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 component | The web cannot draw it as Figma does. |
| Change | Type | Figma files | Code | Details |
|---|---|---|---|---|
| Label: text style | Restyled | Minor | Minor | |
| Label: height | Restyled | Minor | Minor | |
| Label: position | Restyled | Minor | Minor | |
| Label: line height | Restyled | Minor | Minor | |
| Label: letter spacing | Restyled | Minor | Minor |
| Change | Type | Figma files | Code | Details |
|---|---|---|---|---|
| Property links | Not graded | Not graded | Not graded |
| Change | Type | Figma files | Code | Details |
|---|---|---|---|---|
| Description | Docs | Patch | Patch |
| Change | Type | Figma files | Code | Details |
|---|---|---|---|---|
| Input: stroke | Restyled | Minor | Minor |
| Change | Type | Figma files | Code | Details |
|---|---|---|---|---|
| Label: height | Restyled | Minor | Minor | |
| Label: position | Restyled | Minor | Minor | |
| Label: line height | Restyled | Minor | Minor | |
| Input: stroke | Restyled | Minor | Minor |
| Change | Type | Figma files | Code | Details |
|---|---|---|---|---|
| Nested component renamed (10 layers) | Not graded | Not graded | Not graded | |
| Its values moved | Restyled | Minor | Minor | |
| Layer Icon | Added | Minor | Patch | |
| Component | Added | Minor | Minor |