Search (search
)
Search allows users to search for specific content if they know what search terms to use or can’t find desired content in the main navigation.
ID | Label | Description | Schema |
---|---|---|---|
label | Label | Label value. | |
search_id | Search field idea | Value for the 'id' attribute, for accessibility. Keep to one word. |
|
id: search
label: Search
description: 'Search allows users to search for specific content if they know what search terms to use or can’t find desired content in the main navigation.'
group: Search
homepage: 'https://designsystem.digital.gov/components/search/'
variants:
default:
id: default
label: Default
big:
id: big
label: Big
description: 'Search component with increased padding and font-size.'
small:
id: small
label: Small
description: 'A compact variation of the search. Uses a magnifying glass icon for the submit button.'
slots:
label:
id: label
label: Label
description: 'Label value.'
props:
search_id:
id: search_id
label: 'Search field idea'
description: "Value for the 'id' attribute, for accessibility. Keep to one word."
schema:
type: string
examples:
preview:
id: preview
label: Preview
renderable:
'@component': search
search_id: test-search-field
Default
(
default
)
Big
(
big
)
Search component with increased padding and font-size.
Small
(
small
)
A compact variation of the search. Uses a magnifying glass icon for the submit button.