2026-01-31 15:27:41 +01:00
|
|
|
<script lang="ts">
|
|
|
|
|
let {
|
|
|
|
|
text,
|
|
|
|
|
onClick,
|
|
|
|
|
fullWidth,
|
|
|
|
|
}: {
|
|
|
|
|
text: string;
|
|
|
|
|
onClick: () => undefined;
|
|
|
|
|
fullWidth?: boolean;
|
|
|
|
|
} = $props();
|
|
|
|
|
</script>
|
|
|
|
|
|
2026-04-15 16:27:44 +02:00
|
|
|
<button class="outlined-button {fullWidth ? "outlined-button-fullwidth" : ""}" onclick={onClick}>{text}</button>
|
2026-01-31 15:27:41 +01:00
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.outlined-button {
|
|
|
|
|
font-family: var(--font-mono);
|
|
|
|
|
font-size: var(--font-size-mono);
|
|
|
|
|
padding: 8px;
|
2026-02-25 17:52:13 +01:00
|
|
|
border: var(--border-style) var(--border-dash-size) var(--color-highlight);
|
2026-01-31 15:27:41 +01:00
|
|
|
color: var(--color-highlight);
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
cursor: pointer;
|
2026-03-07 13:43:38 +01:00
|
|
|
transition: background-color var(--duration-animation) var(--anim-curve);
|
2026-01-31 15:27:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.outlined-button:hover {
|
|
|
|
|
background-color: var(--color-background-highlight);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.outlined-button-fullwidth {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
</style>
|