Components / Accordion
Accordion
Disclosures separated by hairlines.
Example
The component itself, running in WebAssembly, beside its code in a playground. Try it.
Code
use ravenrs::prelude::*;
fn accordion() -> impl View {
Accordion::new(vec![
Disclosure::new("What platforms does it support?", Text::new("Desktop and browsers with WebGPU."))
.open(true),
Disclosure::new("Can I build my own components?", Text::new("Yes, with the same public API.")),
])
}