Skip to main content

Collapsible

Function Collapsible 

Source
pub fn Collapsible(_: CollapsibleProps) -> Element
Expand description

A titled block of a panel that the reader opens and closes.

§Props

For details, see the props struct definition.

  • title : String

    What the block holds, named in the panel-title type.

  • open : Signal<bool>

    Whether the block is open. The owner keeps it.

  • id : Option<String>

    Names the heading ({id}-heading) and the region it controls ({id}-body); the title’s slug unless given, so two blocks with one title on a page need one each.

  • children : Element