mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
14 lines
358 B
Plaintext
14 lines
358 B
Plaintext
$ var classes = [
|
|
input.class,
|
|
"app-button",
|
|
state.size !== "normal" && "app-button-" + state.size,
|
|
state.variant !== "primary" && "app-button-" + state.variant
|
|
];
|
|
<button ...input["*"] class=classes onClick("handleClick")>
|
|
<if(input.label)>
|
|
${input.label}
|
|
</if>
|
|
<else>
|
|
<${input.renderBody}/>
|
|
</else>
|
|
</button> |