1. framework components
  2. toggle group

Toggle Group

Grouped buttons for toggling option states.

Controlled

Use the value and onValueChange props to control state programmatically.

You selected bold

Orientation

Using the orientation prop to control the layout.

Horizontal

Vertical

Direction

Set the text direction (ltr or rtl) using the dir prop.

Anatomy

Here’s an overview of how the ToggleGroup component is structured in code:

tsx
import { ToggleGroup } from '@skeletonlabs/skeleton-react';

export default function Anatomy() {
	return (
		<ToggleGroup>
			<ToggleGroup.Item />
		</ToggleGroup>
	);
}

API Reference

Unable to load component information for react/toggle-group

View page on GitHub