Module checkbox

Source
Expand description

A customizable, animated checkbox UI component for Tessera UI.

This module provides a standard checkbox widget with support for animated checkmark transitions, external or internal state management, and flexible styling options. The checkbox can be used wherever a boolean selection is required, such as forms, settings panels, or interactive lists.

Features include:

  • Smooth checkmark animation on toggle
  • Optional external state for advanced control and animation
  • Customizable size, colors, shape, and hover effects
  • Callback for state changes to integrate with application logic

Typical usage involves passing CheckboxArgs to the checkbox function, with optional state sharing for animation or controlled components.

Suitable for both simple and complex UI scenarios requiring a responsive, visually appealing checkbox.

Structs§

CheckboxArgs
Arguments for the checkbox component.
CheckboxArgsBuilder
Builder for CheckboxArgs.
CheckboxState
CheckmarkState
State for checkmark animation (similar风格 to SwitchState)

Enums§

CheckboxArgsBuilderError
Error type for CheckboxArgsBuilder

Functions§

checkbox
Renders a checkbox component.