Expand description
Provides a flexible, customizable surface container component for UI elements.
This module defines the surface
component and its configuration via SurfaceArgs
.
The surface acts as a visual and interactive container, supporting background color,
shape, shadow, border, padding, and optional ripple effects for user interaction.
Typical use cases include wrapping content to visually separate it from the background, providing elevation or emphasis, and enabling interactive feedback (e.g., ripple on click). It is commonly used as the foundational layer for buttons, dialogs, editors, and other interactive or visually distinct UI elements.
The surface can be configured for both static and interactive scenarios, with support for hover and click callbacks, making it suitable for a wide range of UI composition needs.
Structs§
- Surface
Args - Arguments for the
surface
component. - Surface
Args Builder - Builder for
SurfaceArgs
.
Enums§
- Surface
Args Builder Error - Error type for SurfaceArgsBuilder
Functions§
- surface
- A basic container component that provides a customizable background, optional shadow, border, shape, and interactive ripple effect. The surface is typically used to wrap content and visually separate it from the background or other UI elements.