#![allow(non_snake_case)]
use strata_dom::{NodeBlueprint, View};
use strata_macro::{component, rsx};
#[component]
pub fn ScrollArea(
id: Option<&'static str>,
class: Option<&'static str>,
children: Option<Vec<NodeBlueprint>>,
show_scrollbar: Option<bool>,
) -> View {
let custom = class.unwrap_or("");
let container_id = id.unwrap_or("");
let _with_bar = show_scrollbar.unwrap_or(true);
rsx! {
<div
id={container_id}
class={format!("relative overflow-y-auto flex-1 flex flex-col min-h-0 w-full {}", custom)}
>
{children.unwrap_or_default()}
</div>
}
}