.finally(React)

English
Copyright © 2023-currentdotfinally, LLC

Dropdown

When life gives you options, make a dropdown

The Dropdown component can be used by importing { Dropdown } from "finallyreact"

Example

Dropdown: Example

Filter on Search

Dropdown: Filter on Search

With Clear

Dropdown: With Clear

Sizes

Dropdown: Sizes

No Outline

Dropdown: No Outline

Color

Color
Dropdown: Color

Select (no typing)

Marceline
Dropdown: Select (no typing)

Select Sizes

Dropdown: Select Sizes

Select - Placeholder

Placeholder
Dropdown: Select - Placeholder

Select - With Clear

Placeholder
Dropdown: Select - With Clear

Disabled

Disabled
Dropdown: Disabled

Simple

Dropdown: Simple

Dropdown Props

Prop NameProp TypeDescription
autoFilterOnSearchbooleanAutomatically filter options when typing
colorstringAny FinallyReact color
disabledbooleanDisables user interaction
initialValueanyInitial value of the dropdown
namestringOptional identifier for the dropdown
onSearch(value: string) => voidCallback for when the user types
optionContainerPropsHTMLAttributesProps for the option container
optionPropsHTMLAttributesProps for all options
optionsobject[]Options for the dropdown
options[].disabled
booleanDisables the option
options[].label
stringLabel of the option
options[].value
anyValue of the option
selectbooleanRenders a select dropdown
simplebooleanRenders a simple dropdown
size'sm' | 'md' | 'lg'Size of the dropdown
textInputPropsTextInputPropsProps for the text input
valueanyValue of the dropdown