first commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// 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>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user