refac: styling

This commit is contained in:
Timothy J. Baek
2024-07-17 22:01:32 +02:00
parent 1e7a364c68
commit 8b71ce23bb
2 changed files with 8 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
const dispatch = createEventDispatcher();
export let className = 'w-72';
export let colorClassName = 'bg-white dark:bg-gray-800';
export let url: string | null = null;
export let clickHandler: Function | null = null;
@@ -18,7 +19,7 @@
<div class="relative group">
<button
class="h-14 {className} flex items-center space-x-3 bg-white dark:bg-gray-800 rounded-xl border border-gray-100 dark:border-gray-800 text-left"
class="h-14 {className} flex items-center space-x-3 {colorClassName} rounded-xl border border-gray-100 dark:border-gray-800 text-left"
type="button"
on:click={async () => {
if (clickHandler === null) {