File size: 417 Bytes
43148fd
 
ff9325e
43148fd
 
ff9325e
43148fd
 
1123781
3207814
1123781
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<script lang="ts">
  export let classList: string = '';
  export let disabled: boolean = false;
</script>

<button class="button {classList}" on:click {disabled}>
  <slot />
</button>

<style lang="postcss" scoped>
  .button {
    @apply rounded bg-gray-700 p-2 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>