2019-08-20 08:18:23 +12:00
|
|
|
<script>
|
2020-11-19 08:18:18 +13:00
|
|
|
import { getContext } from "svelte"
|
|
|
|
|
2020-11-20 22:50:10 +13:00
|
|
|
const { styleable } = getContext("sdk")
|
|
|
|
const styles = getContext("style")
|
2020-11-18 01:08:24 +13:00
|
|
|
|
2020-02-03 22:50:30 +13:00
|
|
|
export let className = "default"
|
|
|
|
export let disabled = false
|
2020-05-09 07:29:15 +12:00
|
|
|
export let text
|
2019-08-20 08:18:23 +12:00
|
|
|
</script>
|
|
|
|
|
2020-11-24 22:31:54 +13:00
|
|
|
<button class="default" disabled={disabled || false} use:styleable={$styles}>
|
2020-11-18 01:08:24 +13:00
|
|
|
{text}
|
2019-08-27 18:32:56 +12:00
|
|
|
</button>
|
|
|
|
|
|
|
|
<style>
|
2020-02-03 22:50:30 +13:00
|
|
|
.default {
|
2020-06-04 09:49:55 +12:00
|
|
|
align-items: center;
|
2020-10-16 20:35:15 +13:00
|
|
|
padding: var(--spacing-s) var(--spacing-l);
|
2020-02-03 22:50:30 +13:00
|
|
|
box-sizing: border-box;
|
2020-06-04 09:49:55 +12:00
|
|
|
border-radius: 4px;
|
2020-02-03 22:50:30 +13:00
|
|
|
outline: none;
|
2020-06-04 09:49:55 +12:00
|
|
|
cursor: pointer;
|
|
|
|
transition: all 0.2s ease 0s;
|
|
|
|
overflow: hidden;
|
|
|
|
outline: none;
|
|
|
|
user-select: none;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-align: center;
|
2020-02-03 22:50:30 +13:00
|
|
|
}
|
|
|
|
</style>
|