Toggle Button Group @astryx-svelte/core v0.3.0 · ToggleButton
Usage
Groups toggle buttons for exclusive (single) or multi-select behavior. Uses discriminated union on type for type-safe value/onChange.tsimport { ToggleButton } from '@astryx-svelte/core';
Examples
Common configurations, variations, and states.ToggleButton — Group
Toggle button groups in single-select and multi-select modes. Single selection acts as a view mode switcher; multiple selection forms a formatting toolbar.
ToggleButtonGroup — Vertical
A vertically stacked ToggleButtonGroup using the vertical orientation, shown with both single-select and multi-select behavior, ideal for sidebar-style option lists and vertical toolbars.