Dropdown
Components
Dropdown()
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
Parameter | Type |
---|---|
props | DropdownProps |
context ? | any |
Returns
ReactNode
Source
libs/design-system-core/src/components/Dropdown/index.tsx:56
Props
DropdownMenuItemType
DropdownMenuItemType:
object
Index signature
[key
: string
]: unknown
Type declaration
Member | Type |
---|---|
icon | React.ReactElement |
id | string |
title | string |
Source
libs/design-system-core/src/components/Dropdown/index.tsx:12
DropdownProps
DropdownProps:
object
Type declaration
Member | Type |
---|---|
label | string |
menuItems | DropdownMenuItemType [] |
name | string |
placeholderLabel | string |
ref | React.Ref <HTMLDivElement > |
required | boolean |
requiredFieldAsteriskColor | Color |
selected | DropdownMenuItemType |
setSelected | React.Dispatch <React.SetStateAction <DropdownMenuItemType >> |
Source
libs/design-system-core/src/components/Dropdown/index.tsx:19