canonrs-server 0.1.0

CanonRS server-side rendering support
//! AspectRatio Island — Canon Rule #340
//! Passthrough only. Zero logic, zero transformation.

use leptos::prelude::*;
use super::aspect_ratio_ui::AspectRatio as AspectRatioUi;

#[component]
pub fn AspectRatio(
    children: Children,
    #[prop(default = 16.0f32)] ratio_w: f32,
    #[prop(default = 9.0f32)] ratio_h:  f32,
    #[prop(into, default = String::new())] class: String,
) -> impl IntoView {
    view! {
        <AspectRatioUi ratio_w=ratio_w ratio_h=ratio_h class=class>
            {children()
};
        </AspectRatioUi>
    }
}