-
Notifications
You must be signed in to change notification settings - Fork 9
Component EmptyState
MeowLynxSea edited this page Jun 18, 2026
·
3 revisions
A "no data" / "no results" block: optional icon, title, description, optional action.
use yororen_ui::headless::empty_state::empty_state;
use yororen_ui::headless::icon::IconSource;
empty_state("no-results", cx)
.icon(IconSource::Named(IconName::Search))
.title("No matches")
.description("Try a different keyword.")
.action(/* any element, e.g. a button */)
.render(cx)| Method | Purpose |
|---|---|
icon(source) |
Optional leading IconSource. |
title(text) |
Main heading. |
description(text) |
Supporting line below the title. |
action(el) |
Optional action element (typically a Button). |
All fields are optional — pass only what you have.
Factory takes (id, _cx). .render(cx) returns Stateful<Div>.
Yororen UI v0.3.0 · repository · Apache-2.0 · This wiki documents Yororen UI v0.3.0.
This wiki documents Yororen UI v0.3.0 — the headless-core, swappable-renderer build.