pub trait Maybe<T> {
// Required method
fn maybe_or(self, or: impl FnOnce() -> T) -> T;
}
Expand description
Helper trait for handling optional parameters in components.
Visit the #[component]
macro documentation
to see how it’s being used.