Skip to main content

Dropdown

Components

Dropdown(props, context?): ReactNode

A Dropdown component provides a fast and easy way to include a dropdown in your app. When inactive, the dropdown display a placeholder text or a single value. Upon activation, a list of options is presented to the user so that they can select.

Parameters

ParameterType
propsDropdownProps
context?any

Returns

ReactNode

Source

libs/design-system-core/src/components/Dropdown/index.tsx:56

Props

DropdownMenuItemType: object

Index signature

[key: string]: unknown

Type declaration

MemberType
iconReact.ReactElement
idstring
titlestring

Source

libs/design-system-core/src/components/Dropdown/index.tsx:12


DropdownProps: object

Type declaration

MemberType
labelstring
menuItemsDropdownMenuItemType[]
namestring
placeholderLabelstring
refReact.Ref<HTMLDivElement>
requiredboolean
requiredFieldAsteriskColorColor
selectedDropdownMenuItemType
setSelectedReact.Dispatch<React.SetStateAction <DropdownMenuItemType>>

Source

libs/design-system-core/src/components/Dropdown/index.tsx:19