Imports
Styled component import
ts
import { TngSelectComponent } from '@tailng-ui/components';Basic usage
Wrapper attachment
html
<tng-select
[options]="workflowStages"
[value]="selectedStage()"
(valueChange)="onSelectedStageChange($event)"
[getOptionValue]="getWorkflowStageValue"
[getOptionLabel]="getWorkflowStageLabel"
[isOptionDisabled]="isWorkflowStageDisabled"
placeholder="Choose workflow stage"
[labelId]="'workflow-stage-label'"
></tng-select>Select variants
The wrapper API stays the same across plain CSS and Tailwind shells.
Workflow stage (Plain-CSS)
Workflow stage
Wrapper-first single selection with a light shell and a committed value summary.
- Draft
- In review
- QA ready
- Live
Selected: In review
Workflow stage (Tailwind CSS)
Workflow stage
Wrapper-first single selection with a utility-first shell and the same select contract.
- DraftInternal drafting only.
- In reviewWaiting on editorial review.
- QA readyApproved for validation.
- LiveAlready published.
Selected: QA ready
Behavior baseline
- The wrapper exposes a controlled single-value model through
valueandvalueChange. - The trigger owns the combobox semantics while the menu uses a roving active option inside a listbox.
- Use content templates when you need richer selected-value or option-row markup without rebuilding the primitive shell.