Skip to main content

EmptyState

Function EmptyState 

Source
pub fn EmptyState(_: EmptyStateProps) -> Element
Expand description

An empty or failed region: an icon, a title, a sentence, and what to do next.

ยงProps

For details, see the props struct definition.

  • title : Option<Element>
  • heading : HeadingLevel
  • icon : Option<Element>

    Decorative; hidden from assistive technology.

  • body : Option<Element>
  • actions : Option<Element>
  • compact : bool
  • error : bool
  • announce : bool

    Announce the error. Set it only when a user action led here, so a page that merely loads empty does not interrupt.

  • class : Option<String>
  • attributes : Vec<Attribute>