button update
This commit is contained in:
parent
8ff467ea4e
commit
1d172d17ba
@ -2,6 +2,7 @@
|
|||||||
export let on_click = async () => {};
|
export let on_click = async () => {};
|
||||||
/** @type {'blue' | 'red' | 'green' | 'bg'} */
|
/** @type {'blue' | 'red' | 'green' | 'bg'} */
|
||||||
export let color = "bg";
|
export let color = "bg";
|
||||||
|
export let class_div = "";
|
||||||
export let class_name = "";
|
export let class_name = "";
|
||||||
export let is_border = true;
|
export let is_border = true;
|
||||||
let is_hover = false;
|
let is_hover = false;
|
||||||
@ -13,7 +14,7 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="w-auto m-2">
|
<div class="w-auto m-2 {class_div}">
|
||||||
<button
|
<button
|
||||||
on:click={async () => {
|
on:click={async () => {
|
||||||
is_hover = false;
|
is_hover = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user