#[must_use]
pub struct Accordion {
pub(crate) items: Vec<(String, String)>,
pub(crate) multiple: bool,
}
impl Accordion {
pub fn new(items: Vec<(String, String)>) -> Self {
Self {
items,
multiple: false,
}
}
pub fn multiple(mut self) -> Self {
self.multiple = true;
self
}
}