Skip to content
Permalink
f681d64416
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
44 lines (39 sloc) 853 Bytes
<script lang="ts">
export let id: string;
export let click = () => {
alert("no function assigned");
};
export let fill = false;
export let elevated = false;
export let ariaLabel = "";
</script>
<button
id="button-{id}"
class="button vertical"
class:fill
class:elevated
on:click={click}
aria-label={ariaLabel}
>
<slot></slot>
</button>
<style>
.button.vertical {
flex-direction: column;
line-height: 1;
padding: var(--padding);
gap: calc(var(--padding) / 2);
}
.button.vertical :global(svg) {
width: 24px;
height: 24px;
}
.button.vertical.fill {
width: 100%;
padding: var(--padding) 0;
}
.button.vertical :global(svg) {
stroke-width: 1.8px;
color: var(--secondary);
}
</style>