Toggle

The Toggle component is an interactive UI element that allows users to switch between two states, such as on/off or enabled/disabled. It is commonly used for settings and preferences where a binary choice is required. This component provides a clear and intuitive way for users to make selections, enhancing usability and interaction within an application.

Toggle

size

"lg" | "md" | "sm" | undefined = md

withVisibilityIcon

Boolean

If true, display an eye / eye-slash icon to toggle visibility.