howtomakeaname/sumi/layout does not have a README file
pub(all) struct ShortcutItem {
label : String
keys : String
}fn[C : IsChildren] card(id? : String, class? : String, title? : String, attrs? : Attrs, style? : Array[String], children : C) -> Htmlfn[C : IsChildren] card_section(header~ : Html, id? : String, class? : String, attrs? : Attrs, style? : Array[String], children : C) -> Htmlshortcuts_panel(
title="Shortcuts",
sections=[
ShortcutSection::new(
"General",
[
ShortcutItem::new("Toggle sidebar", "Cmd /"),
ShortcutItem::new("Send message", "Enter"),
],
),
],
on_close=close_panel,
)tabs(
items=[TabEntry::new("all", "All"), TabEntry::new("mine", "Mine")],
selected=tab,
on_select=set_tab.map(v => _ => v),
)fn[C : IsChildren] toolbar(id? : String, class? : String, title? : String, attrs? : Attrs, style? : Array[String], children : C) -> HtmlInstall
Download zipA UI component library for MoonBit web apps — dark & light themes, overlay motion, zero config
Dependencies