use crate::components::{Demo, DemoCode}; use leptos::*; use melt_ui::*; use prisms::highlight_str; #[component] pub fn GridPage() -> impl IntoView { mount_style( "grid-demo", r#".melt-grid-item { height: 130px; color: white; text-align: center; line-height: 130px; } .melt-grid-item:nth-child(odd) { background-color: #3d8ae5dd; } .melt-grid-item:nth-child(even) { background-color: #3d8ae5aa; }"#, ); view! {

"Grid"

"123" "456" "789" "123" "456" "789" "123" "456" "789" "123" "456" "789" "#, "rust" ) > ""

"gap"

"123" "321" "123" "456" "7" "123" "123" "1234" "567" "567" "123" "321" "123" "456" "7" "123" "123" "1234" "567" "567" "#, "rust" ) > ""

"gap"

"123" "456" "123" "456" "#, "rust" ) > ""
} }