Function surface

Source
pub fn surface(
    args: SurfaceArgs,
    ripple_state: Option<Arc<RippleState>>,
    child: impl FnOnce(),
)
Expand description

surface component, a basic container that can have its own size constraints. If args contains an on_click callback, a ripple_state must be provided for interactive behavior.