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§
- Glass
Switch Args - Glass
Switch Args Builder - Builder for
GlassSwitchArgs
. - Glass
Switch State - State for the
glass_switch
component, handling animation.
Enums§
- Glass
Switch Args Builder Error - Error type for GlassSwitchArgsBuilder
Functions§
- glass_
switch - A glass-like switch component for toggling a boolean state.