Spaces:
Starting
on
A100
Starting
on
A100
File size: 457 Bytes
43148fd d1f4c77 ff9325e d1f4c77 43148fd d1f4c77 43148fd 1123781 3207814 1123781 d1f4c77 1123781 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<script lang="ts">
export let classList: string = 'p-2';
export let disabled: boolean = false;
export let title: string = '';
</script>
<button class="button {classList}" on:click {disabled} {title}>
<slot />
</button>
<style lang="postcss" scoped>
.button {
@apply rounded bg-gray-700 font-normal text-white hover:bg-gray-800 disabled:cursor-not-allowed disabled:bg-gray-300 dark:disabled:bg-gray-700 dark:disabled:text-black;
}
</style>
|