Toggle

A two-state button that can be either on or off.

          
      

Installation

          
      
          
      

Usage

          
      
          
      

Examples

Default

          
      

Outline

          
      

With Text

          
      

Sizes

          
      

Disabled

          
      

API Reference

Properties

PropertyTypeDefaultDescription
variant"default" | "outline""default"The visual variant of the toggle.
size"default" | "sm" | "lg""default"The size of the toggle.
disabledbooleanfalseWhether the toggle is disabled.
uiToggleSelectedbooleanfalseTwo-way binding for the toggle state.
classstringAdditional CSS classes to apply to the toggle.

Built with ❤️ by @immohammadjaved • Source code available on GitHub