misc: Change the way buttons are handled
This commit is contained in:
1 parent
d8ac0d807a
commit
e243848e17
30 files changed
+215
-152
No files matched your search
@@ -1,16 +1,13 @@
|
||||
<script lang="ts">
|
||||
import { Color } from '$lib/ui/colors.js'
|
||||
export let href: string
|
||||
|
||||
export let color: Color = Color.secondary
|
||||
export let href = ''
|
||||
export let label: string = ''
|
||||
export let highlight: boolean
|
||||
</script>
|
||||
|
||||
<a
|
||||
{href}
|
||||
class="px-3 py-1 rounded-md {color} flex flex-row items-center
|
||||
justify-center text-sm transition-all gap-1"
|
||||
aria-label={label}
|
||||
class="flex flex-row gap-2 {highlight ? 'text-sky-500' : ''} hover:underline"
|
||||
{...$$restProps}
|
||||
>
|
||||
<slot name="icon" />
|
||||
<slot />
|
||||
|
||||
Reference in new issue
Block a user