# Collapse ```rust demo use std::collections::HashSet; let value = create_rw_signal(HashSet::from(["thaw".to_string()])); view! { "Build fast web applications with Rust." "An easy to use leptos component library" } ``` ### Accordion Like an accordion. ```rust demo view! { "Build fast web applications with Rust." "An easy to use leptos component library." "A Vue 3 Component Library. Fairly Complete. Theme Customizable. Uses TypeScript. Fast." } ``` ### Collapse Props | Name | Type | Default | Description | | --------- | --------------------------- | -------------------- | ------------------------------------------- | | class | `MaybeSignal` | `Default::default()` | Addtional classes for the collapse element. | | value | `RwSignal>` | `Default::default()` | Currently active panel. | | accordion | `bool` | `false` | Only allow one panel open at a time. | | children | `Children` | | Collapse's content. | ### CollapseItem Props | Name | Type | Default | Description | | ------- | --------------------- | -------------------- | ------------------------------------------------ | | class | `MaybeSignal` | `Default::default()` | Addtional classes for the collapse item element. | | title | `MaybeSignal` | | The title of the CollapseItem. | | key | `MaybeSignal` | | The indentifier of CollapseItem. | | chilren | `Children` | | CollapseItem's content. |