Expand description
Provides a highly customizable and interactive button component for Tessera UI.
This module defines the button
component and its configuration via ButtonArgs
.
The button supports custom colors, shapes, padding, border, ripple effects, and hover states.
It is designed to wrap arbitrary child content and handle user interactions such as clicks
with visual feedback. Typical use cases include triggering actions, submitting forms, or
serving as a core interactive element in user interfaces.
The API offers builder patterns and convenience constructors for common button styles (primary, secondary, success, danger), making it easy to create consistent and accessible buttons throughout your application.
Example usage and customization patterns are provided in the button
documentation.
§Features
- Customizable appearance: color, shape, border, padding, ripple, hover
- Flexible sizing: explicit width/height or content-based
- Event handling: on_click callback
- Composable: can wrap any child component
- Builder and fluent APIs for ergonomic usage
See button
and ButtonArgs
for details.
Structs§
- Button
Args - Arguments for the
button
component. - Button
Args Builder - Builder for
ButtonArgs
.
Enums§
- Button
Args Builder Error - Error type for ButtonArgsBuilder
Functions§
- button
- Creates an interactive button component that can wrap any custom child content.