howtomakeaname/sumi/forms does not have a README file
fn SegmentedItem::new(value : String, label : String, icon? : Html, trailing? : Html, numeric? : Bool, disabled? : Bool) -> SegmentedItemaction_chip(label="Storyboard", on_click=emit.map(Run("storyboard")))fn agent_input(value? : String, placeholder? : String, rows? : Int, on_input? : Emit[String], on_send? : Cmd, on_stop? : Cmd, send_disabled? : Bool, send_loading? : Bool, generating? : Bool, disabled? : Bool, autofocus? : Bool, actions? : Array[Html], children? : Array[Html], aria_label? : String, id? : String, class? : String, attrs? : Attrs, style? : Array[String]) -> Htmlagent_input(
value=prompt,
placeholder="Describe your idea, or type / to use a skill",
on_input=emit.map(PromptChanged),
on_send=emit(Submit),
send_disabled=prompt.is_empty(),
actions=[
icon_button(icon_plus_fill(size=14), aria_label="Add attachment"),
agent_tool_button(icon=icon_skill(), label="Use Skill"),
icon_button(icon_at(), aria_label="Mention a reference"),
],
)agent_tool_button(icon=icon_skill(), label="Use Skill", on_click=pick_skill)attachment_strip(
items=[
AttachmentItem::image("cover.png", label="Cover"),
AttachmentItem::document("Brief.pdf"),
],
on_add=pick_files,
on_remove=set_items.map(i => items => items.filteri(fn(j, _) { j != i })),
)chip("720P", selected=quality == "720p", on_click=set_quality.map(v => _ => "720p"))chip_panel(children=[
skill_chip(label="Storyboard", mark=Hot),
skill_chip(label="Quick Cut"),
])fn hitl_card(title~ : String, items~ : Array[HitlItem], on_toggle? : Emit[Int], confirmed? : Bool, on_cancel? : Cmd, on_confirm? : Cmd, cancel_label? : String, confirm_label? : String, max_height? : Int, aria_label? : String, id? : String, class? : String, attrs? : Attrs, style? : Array[String]) -> Htmlhitl_card(
title="Generate the following 4 videos",
items=plan,
on_toggle=emit.map(ToggleRow),
on_cancel=emit(Dismiss),
on_confirm=emit(ConfirmAll),
)fn input(value~ : String, placeholder? : String, input_type? : InputType, on_input? : Emit[String], on_change? : Emit[String], on_clear? : Cmd, clearable? : Bool, prefix? : Html, suffix? : Html, error? : Bool, error_text? : String, disabled? : Bool, read_only? : Bool, name? : String, maxlength? : Int, autofocus? : Bool, id? : String, class? : String, title? : String, attrs? : Attrs, style? : Array[String]) -> Htmlfn prompt_box(value~ : String, placeholder? : String, rows? : Int, on_input? : Emit[String], on_send? : Cmd, send_disabled? : Bool, send_loading? : Bool, disabled? : Bool, maxlength? : Int, show_count? : Bool, autofocus? : Bool, actions? : Html, id? : String, class? : String, attrs? : Attrs, style? : Array[String]) -> Htmlprompt_box(
value=prompt,
placeholder="Describe what to create",
on_input=emit.map(PromptChanged),
on_send=emit(Submit),
send_disabled=prompt.is_empty(),
maxlength=800,
show_count=true,
)select(
options=[@overlays.MenuItem::new("png", "PNG"), @overlays.MenuItem::new("webp", "WebP")],
value=format,
placeholder="Export format",
open=select_open,
on_open_change=set_select_open.map(v => _ => v),
on_select=set_format.map(v => _ => v),
)skill_chip(label="Storyboard", icon=@sumi.icon_draw(size=16), mark=New)
skill_chip(label="More", more=true, on_click=emit(OpenSkillPanel))slider(
value=35,
value_tooltip=true,
on_input=set_strength.map(v => _ => v),
on_commit=emit(CommitStrength),
suffix="°",
)fn slider_field(value~ : Int, min? : Int, max? : Int, step? : Int, label? : String, unit? : String, ticks? : Array[Int], auto? : Bool, auto_label? : String, on_auto_change? : Emit[Bool], on_input? : Emit[Int], on_commit? : Emit[Int], disabled? : Bool, id? : String, class? : String, attrs? : Attrs, style? : Array[String]) -> Htmlslider_field(
value=duration,
min=0, max=180,
label="Total duration",
unit="s",
ticks=[0, 30, 60, 90, 120, 150, 180],
on_input=set_duration.map(v => _ => v),
)fn textarea(value~ : String, placeholder? : String, rows? : Int, on_input? : Emit[String], on_change? : Emit[String], disabled? : Bool, read_only? : Bool, name? : String, maxlength? : Int, autofocus? : Bool, id? : String, class? : String, title? : String, attrs? : Attrs, style? : Array[String]) -> HtmlInstall
Download zipA UI component library for MoonBit web apps — dark & light themes, overlay motion, zero config