co-toggle-button-group
Ver código
<co-toggle-button-group></co-toggle-button-group> Props
| Prop | Atributo | Tipo | Default | Descripción |
|---|---|---|---|---|
direction | direction | "column" | "row" | 'row' | |
disabled | disabled | boolean | false | |
fullWidth | full-width | boolean | false | Stretch the group to fill its container; each button shares the width equally. |
multiple | multiple | boolean | false | |
size | size | "l" | "m" | "s" | "xs" | 'm' | |
value | value | string | string[] | '' | Current selected value(s). Single string or JSON array for multiple. |
variant | variant | "connected" | "track" | 'connected' | 'connected' (default) keeps the seamless dark-fill segmented control. 'track' turns the group into a sunken gray track carrying detached rounded pills (white + shadow when selected) — e.g. an icon-only view toggle. |
Eventos
| Evento | Detail | Bubbles | Cancelable | Descripción |
|---|---|---|---|---|
coChange | string | string[] | ✓ | ✓ |
Slots
Este componente no expone slots.
CSS Parts
Este componente no expone CSS parts.
CSS Custom Properties
Este componente no expone CSS custom properties.