

# Toggle

Custom toggle component.

# Installation

Copy the following code into your app directory.


> **Error: 'Toggle' not found in registry**


# Usage


> **Error: 'toggle' not found in registry**


# Anatomy 
Use the following composition to build a `Toggle`


```python
toggle()
```



# Examples

## Icon Toggle Variants
Use `toggle()` for a pressable on/off control. Control icon behavior with `icon_variant="fill"` to fill icons on press, or omit it and style manually using `data-[pressed] selectors` (e.g. text-* or fill-*).


> **Error: 'toggle_general' not found in registry**


## Pressed State
Use `default_pressed=True` to set the default pressed state of a toggle.


> **Error: 'toggle_pressed_state' not found in registry**


## Disabled
Set `disabled=True` to disable a toggle.


> **Error: 'toggle_disabled' not found in registry**

