Module glass_switch

Source
Expand description

§Glass Switch Component Module

This module provides a customizable, glassmorphic-style switch (toggle) UI component for the Tessera UI framework. The glass switch enables toggling a boolean state with smooth animated transitions and a frosted glass visual effect. It is suitable for modern user interfaces requiring visually appealing, interactive on/off controls, such as settings panels, forms, or dashboards. The component supports extensive customization, including size, color, border, and animation, and is designed for stateless usage with external state management. Typical usage involves integrating the switch into application UIs where a clear, elegant toggle is desired.

See glass_switch() for usage details and customization options.

Structs§

GlassSwitchArgs
GlassSwitchArgsBuilder
Builder for GlassSwitchArgs.
GlassSwitchState
State for the glass_switch component, handling animation.

Enums§

GlassSwitchArgsBuilderError
Error type for GlassSwitchArgsBuilder

Functions§

glass_switch
A glass-like switch component for toggling a boolean state.