2021-03-25 23:32:23 +01:00
|
|
|
<script lang="typescript">
|
|
|
|
import ButtonItem from "./ButtonItem.svelte";
|
2021-03-29 14:54:10 +02:00
|
|
|
|
|
|
|
export let label: string;
|
2021-03-25 23:32:23 +01:00
|
|
|
</script>
|
2021-03-29 14:54:10 +02:00
|
|
|
|
2021-03-25 23:32:23 +01:00
|
|
|
<style lang="scss">
|
|
|
|
button {
|
2021-03-29 23:43:48 +02:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
width: auto;
|
|
|
|
height: 30px;
|
|
|
|
|
2021-03-25 23:32:23 +01:00
|
|
|
padding: 3px 10px;
|
2021-03-29 14:54:10 +02:00
|
|
|
margin-right: 3px;
|
2021-03-25 23:32:23 +01:00
|
|
|
|
2021-03-29 14:54:10 +02:00
|
|
|
&:focus {
|
2021-03-29 17:32:43 +02:00
|
|
|
box-shadow: 0 0 0 0.05rem rgba(255, 255, 255, 0.5);
|
2021-03-29 14:54:10 +02:00
|
|
|
}
|
2021-03-25 23:32:23 +01:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<ButtonItem>
|
2021-03-29 17:32:43 +02:00
|
|
|
<button type="button" class="btn btn-secondary" on:click> {label} </button>
|
2021-03-25 23:32:23 +01:00
|
|
|
</ButtonItem>
|