Files
scholarships-rs/src/components/row.rs
T
alphafetus 86bd471c1e feat: implement working MultiEntry component
This MultiEntry (Rewrite) is capable of storing and sending values through the server functions, as well as dynamically updating the master list as values are changed.
2025-10-16 11:51:27 -04:00

26 lines
569 B
Rust

use leptos::prelude::*;
/// # Row Component
///
/// This component is designed for use within the `Panel` component, however it may be used standalone
/// when used within any `div` with the `flex` property set.
///
/// Example usage (with `Panel`):
/// ```
/// view! {
/// <Panel>
/// <Row>
/// // More content here...
/// </Row>
/// </Panel>
/// }
/// ```
#[component]
pub fn Row(children: Children) -> impl IntoView {
view! {
<div class="flex flex-row gap-2 flex-1">
{children()}
</div>
}
}