howdy/ui/empty

Empty states: what to show where there is nothing yet, and what to do about it.

empty.empty(
  icon: text("📭"),
  title: "No invoices yet",
  description: "Invoices you send appear here.",
  actions: [button.button(Primary, [], [text("New invoice")])],
)

Values

pub fn actions_class() -> css.Class
pub fn classes() -> List(css.Class)

Every class this module uses, for howdy/ui/export.

pub fn description_class() -> css.Class
pub fn empty(
  icon icon: element.Element(msg),
  title title: String,
  description description: String,
  actions actions: List(element.Element(msg)),
) -> element.Element(msg)
pub fn empty_class() -> css.Class
pub fn icon_class() -> css.Class
pub fn title_class() -> css.Class
✨ Search Document