2020-01-30 17:22:19 +01:00
|
|
|
<script>
|
2020-01-30 21:01:18 +01:00
|
|
|
export let visible = true;
|
2020-01-30 17:22:19 +01:00
|
|
|
export let disabled = false;
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.action-button {
|
|
|
|
color: #0055ff;
|
|
|
|
background: rgb(54, 133, 249, 0.1);
|
|
|
|
font-size: 18px;
|
|
|
|
font-weight: bold;
|
|
|
|
border-radius: 5px;
|
|
|
|
border: none;
|
|
|
|
width: 167px;
|
|
|
|
height: 64px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.action-button:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.action-button:disabled {
|
2020-01-30 22:00:19 +01:00
|
|
|
color: rgba(22, 48, 87, 0.2);
|
2020-01-30 17:22:19 +01:00
|
|
|
cursor: default;
|
|
|
|
background: transparent;
|
|
|
|
}
|
2020-01-30 21:01:18 +01:00
|
|
|
|
|
|
|
.hidden {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
2020-01-30 17:22:19 +01:00
|
|
|
</style>
|
|
|
|
|
2020-01-30 21:01:18 +01:00
|
|
|
<button on:click class="action-button {!visible && 'hidden'}" {disabled}>
|
2020-01-30 17:22:19 +01:00
|
|
|
<slot />
|
|
|
|
</button>
|