mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-21 16:25:11 +02:00
16 lines
339 B
Svelte
16 lines
339 B
Svelte
<script>
|
|
import classNames from 'classnames';
|
|
|
|
export let disabled = false;
|
|
</script>
|
|
|
|
<button
|
|
class={classNames('text-zinc-300 hover:text-zinc-50 p-1 flex items-center justify-center', {
|
|
'opacity-30 cursor-not-allowed pointer-events-none': disabled,
|
|
'cursor-pointer': !disabled
|
|
})}
|
|
on:click|stopPropagation
|
|
>
|
|
<slot />
|
|
</button>
|