feat(leptos): UI primitives — Input, Select, Tabs, ScrollArea, Toast

This commit is contained in:
asepharyana
2026-07-03 17:47:21 +07:00
parent 2b514142e6
commit b9e3a255bb
6 changed files with 248 additions and 0 deletions
@@ -0,0 +1,15 @@
// services/frontend-leptos/frontend/src/ui/scroll_area.rs
use leptos::prelude::*;
#[component]
pub fn ScrollArea(
#[prop(optional)] class: &'static str,
#[prop(optional)] style: &'static str,
children: Children,
) -> impl IntoView {
view! {
<div class={if !class.is_empty() { format!("scroll-area {}", class) } else { "scroll-area".to_string() }} style=style>
{children()}
</div>
}
}