The PrimeNGDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Nettalco/nettalco-theme/llms.txt
Use this file to discover all available pages before exploring further.
p-selectbutton component renders a group of toggle buttons that function as a single-select or multi-select control — useful for filter bars, view-mode switchers, and segmented option groups. Nettalco Theme applies the shared form-field border-radius to the component wrapper and aligns the invalidBorderColor with the rest of the form field suite, so validation states look consistent across inputs, selects, and button groups.
Basic Usage
Component Setup (TypeScript)
With Custom Templates
Reactive Forms Integration
Design Tokens
Root Tokens
| Token | Value | Description |
|---|---|---|
selectbutton.root.borderRadius | {form.field.border.radius} → 6px | Outer wrapper border radius; aligns with all form field components |
Color Scheme Tokens
| Token | Light Value | Dark Value |
|---|---|---|
selectbutton.colorScheme.light.root.invalidBorderColor | {form.field.invalid.border.color} | — |
selectbutton.colorScheme.dark.root.invalidBorderColor | {form.field.invalid.border.color} | — |
invalidBorderColor through {form.field.invalid.border.color}, which maps to the error semantic palette. This keeps validation error styling uniform with other form field components like InputText and Select.
SelectButton’s selected-item fill, text color, and hover states are controlled by the underlying Button component tokens and PrimeNG’s internal theming layer. The Nettalco preset focuses on wrapper-level radius and invalid border color, relying on the Aura base for the active/inactive toggle state colors.
Nettalco-Specific Customizations
Unified form-field border radius. Theselectbutton.root.borderRadius token is bound to {form.field.border.radius} (6px), so the SelectButton group clips to the same corner radius as adjacent text inputs, dropdowns, and date pickers. In a filter bar mixing InputText and SelectButton, both components share identical rounded corners.
Consistent invalid state appearance. Setting [invalid]="true" triggers the invalidBorderColor token, which maps to the same {form.field.invalid.border.color} used by every other Nettalco-themed form control. Users see a uniform red border outline across the entire form whether the invalid field is a text box, a select, or a select-button group.
Light/dark parity. Both color scheme entries point to the same {form.field.invalid.border.color} reference, so there is no separate dark-mode error color to maintain — the resolved value adapts automatically when the dark mode selector is active.