2022-11-02 03:10:02 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
export let kind = 'primary';
|
|
|
|
|
export let icon = false;
|
|
|
|
|
export let disabled = false;
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<button class={`btn ${icon ? 'btn-icon' : ''} ${kind}`} type="button" {disabled} on:click>
|
|
|
|
|
<slot />
|
|
|
|
|
</button>
|
|
|
|
|
|
2023-01-16 07:32:49 +00:00
|
|
|
<style lang="postcss">
|
2022-11-02 03:10:02 +00:00
|
|
|
button {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
2023-01-17 07:07:15 +00:00
|
|
|
border-radius: 10px;
|
2022-11-02 03:10:02 +00:00
|
|
|
margin: 0;
|
|
|
|
|
padding: 1rem;
|
2023-01-14 05:13:59 +00:00
|
|
|
min-width: 20rem;
|
2022-11-02 03:10:02 +00:00
|
|
|
max-width: 30rem;
|
2023-01-16 07:32:49 +00:00
|
|
|
min-height: 6.2rem;
|
|
|
|
|
text-align: start;
|
2022-11-02 03:10:02 +00:00
|
|
|
background-color: var(--color-btn-primary-active);
|
2023-01-16 07:32:49 +00:00
|
|
|
|
2023-06-02 05:22:34 +00:00
|
|
|
@media (min-width: 1000px) {
|
2023-01-16 07:32:49 +00:00
|
|
|
min-width: 23.5rem;
|
|
|
|
|
}
|
2022-11-02 03:10:02 +00:00
|
|
|
}
|
|
|
|
|
</style>
|