Imports
Styled component import
ts
import { TngMultiSelectComponent } from '@tailng-ui/components';Basic usage
Wrapper attachment
html
<tng-multiselect
[options]="planets"
[value]="selectedPlanets()"
(valueChange)="onValueChange($event)"
[getOptionValue]="getPlanetValue"
[getOptionLabel]="getPlanetLabel"
placeholder="Select planets"
></tng-multiselect>MultiSelect variants
The wrapper API stays the same across plain CSS and Tailwind shells.
Planet picker (Plain-CSS)
Planet picker
Wrapper-first multi-selection with a light shell and a committed value summary.
- Mercury
- Venus
- Earth
- Mars
- Jupiter
- Uranus
- Neptune
Selected: Earth, Mars, Neptune
Planet picker (Tailwind CSS)
Planet picker
Wrapper-first multi-selection with a utility-first shell and the same multiselect contract.
- Mercury
- Venus
- Earth
- Mars
- Jupiter
- Uranus
- Neptune
Selected: Venus, Uranus
Behavior baseline
tngMultiSelectmodels values asreadonly T[].Entertoggles the active option without closing the overlay.- Trigger and overlay contracts reuse shared select parts for consistent styling.
- Option state hooks are exposed through
data-active,data-selected, anddata-disabled.