Dropdown - Single Select
Design System - Dropdown single select component

// Sample code
<Dropdown
style={}
variant={error ? "error" : ""}
t={t}
option={projectType?.["HCM-PROJECT-TYPES"]?.projectTypes}
optionKey={"code"}
selected={type}
select={(value) => {
handleChange(value);
}}
disabled = {false}
/>// Sample code
DigitDropdown<int>(
isDisabled: false,
onSelect: (item) => {},
dropdownController: TextEditingController(),
isSearchable: false,
items: [
'one',
'two',
'three',
'four',
]
.asMap()
.entries
.map(
(item) => DropdownItem(
name: item.value,
code: item.key.toString(),
),
)
.toList(),
),Anatomy

Variants
Properties
Property Configuration Table
Property
Value
Default
Property
Value
Default
Interaction State
Behaviours
Usage Guide
Changelog
Date
Number
Notes
Design Checklist
Last updated
Was this helpful?
















