Toggle Group

Custom toggle group component.

Installation

Copy the following code into your app directory.

buridan add component toggle_group

Usage

Make sure to correctly set your imports relative to the component.

from components.base_ui.toggle_group import toggle_group

Examples

Below are examples demonstrating how the component can be used.

General

A basic toggle group with single-selection mode, allowing only one active toggle at a time.

Multiple Selection

Allows selecting multiple toggles simultaneously by enabling the multiple property.

Disabled

Demonstrates a toggle group where all items are disabled and non-interactive.