BRAID
Braid Logo
Resources
Releases
Gallery
Playroom
GitHub
Guides
Design Workflow
Development Workflow
Playroom Prototyping
Contribution
Testing Guide
Foundations
Layout
Tones
Iconography
Examples
Job Summary
Basic Form
Marketing Banner
Components
Accordion
Actions
Alert
Autosuggest
Badge
Bleed
Box
New
Button
ButtonIcon
ButtonLink
Card
Checkbox
Columns
ContentBlock
Dialog
Disclosure
Divider
Drawer
Dropdown
FieldLabel
FieldMessage
Heading
Hidden
HiddenVisually
Inline
List
Loader
MenuItem
MenuItemCheckbox
MenuItemDivider
MenuRenderer
MonthPicker
Notice
OverflowMenu
Page
PageBlock
Pagination
PasswordField
RadioGroup
Rating
Secondary
Spread
Stack
Stepper
Strong
Tabs
Tag
Text
TextDropdown
TextField
TextLink
TextLinkButton
Textarea
Tiles
Toggle
TooltipRenderer
useToast
CSS
atoms
New
breakpoints
globalHeadingStyle
globalTextStyle
responsiveStyle
vars
Logic
BraidPortal
BraidProvider
BraidTestProvider
Link
ThemeNameConsumer
useColor
useResponsiveValue
useSpace
useThemeName
Autosuggest
Details
Details
Props
Props
Releases
2
Releases
2
Snippets
Snippets
id
Required
string
value
Required
AutosuggestValue<Value>
suggestions
Required
Suggestions<Value> | (value: AutosuggestValue<Value>) => Suggestions<Value>
onChange
Required
(value: AutosuggestValue<Value>) => void
aria-labelledby
Required
string
aria-label
Required
string
label
Required
ReactNode
name
string
autoFocus
boolean
aria-describedby
string
data
DataAttributeMap
disabled
boolean
required
boolean
tone
"caution" | "critical" | "neutral" | "positive"
icon
ReactNode
description
ReactNode
message
ReactNode
secondaryMessage
ReactNode
reserveMessageSpace
boolean
noSuggestionsMessage
string | { title: string; description: string; }
clearLabel
string
automaticSelection
boolean
suggestionHighlight
"matching" | "remaining"
hideSuggestionsOnSelection
boolean
showMobileBackdrop
boolean
scrollToTopOnMobile
boolean
onBlur
() => void
onFocus
() => void
onClear
() => void
placeholder
string
type
"text" | "search"
translations
{
assistiveDescription: string;
suggestionInstructions: string;
suggestionsAvailableAnnouncement: (suggestionCount: number) => string;
noSuggestionsAvailableAnnouncement: string;
suggestionAutoSelectedAnnouncement: (suggestion: string) => string;
}
secondaryLabel
ReactNode
tertiaryLabel
ReactNode
ref
Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref).
string | (instance: HTMLInputElement | null) => void | RefObject<HTMLInputElement>
Further References
View Source
BRAID
Braid Logo