Toggle
Custom toggle component.
Installation
Copy the following code into your app directory.
buridan add component toggleUsage
Make sure to correctly set your imports relative to the component.
from components.base_ui.toggle import toggle
Examples
Below are examples demonstrating how the component can be used.
General
A simple toggle component that can be pressed to switch between active and inactive states.
Pressed State
Demonstrates a toggle that starts in the pressed state by default.
Disabled
Shows a toggle that is disabled and cannot be interacted with.