~starkingdoms/starkingdoms

ref: 7a66a2f41bcf088e61dbfe4c151dd4f2320dbd91 starkingdoms/starkingdoms-client/src/components/ui/Button.svelte -rw-r--r-- 611 bytes
7a66a2f4 — ghostlyzsh remove /client/ and broken loading but different this time 1 year, 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<script lang="ts">
  let clazz: string = "";
  export { clazz as class };
  export let id: string = "";
  export let disabled = false;
  export let style = "";
</script>

<button {id} class="btn {clazz}" {disabled} on:click on:focus {style}>
  <slot />
</button>

<style lang="scss">
  .btn {
    appearance: none;
    background: transparent;
    color: var(--text);
    padding: 0.675em 1em;
    border-radius: 0.25rem;
    cursor: text;
    border: 2px solid var(--links);
    transition: 0.1s ease-in-out;
  }
  .btn:hover {
    cursor: pointer;
    background-color: var(--links-transparent);
  }
</style>