mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2026-04-02 09:55:23 +00:00
29 lines
548 B
Svelte
29 lines
548 B
Svelte
<script lang="ts">
|
|
import type { HTMLButtonAttributes } from 'svelte/elements'
|
|
|
|
interface Props {
|
|
children?: import('svelte').Snippet
|
|
}
|
|
|
|
let { children, ...rest }: HTMLButtonAttributes & Props = $props()
|
|
</script>
|
|
|
|
<button {...rest}>{@render children?.()}</button>
|
|
|
|
<style>
|
|
button {
|
|
width: auto;
|
|
display: inline-block;
|
|
padding: 0.25rem 2.5rem;
|
|
border: 2px solid var(--ui-bg-2);
|
|
background: var(--ui-bg-1);
|
|
outline: none;
|
|
cursor: pointer;
|
|
height: 2.5rem;
|
|
}
|
|
|
|
button:hover {
|
|
border-color: var(--ui-clr-primary);
|
|
}
|
|
</style>
|