Files
WRNexusJS/.publish/ui/components/button.wrn
T
2026-07-12 15:55:18 +05:30

15 lines
401 B
Plaintext

// Button. variant: default | primary | danger | ghost — size: sm | md | lg.
// Use the `label` prop, or put custom content in the slot.
component Button {
props {
label = "Button"
variant = "default"
size = "md"
type = "button"
class = ""
}
view {
<button type="{type}" class="wire-btn wire-btn--{variant} wire-btn--{size} {class}"><slot>{label}</slot></button>
}
}