Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 722 Bytes
b2ecf7d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
<script lang="ts">
import WidgetLabel from "../WidgetLabel/WidgetLabel.svelte";
export let classNames = "";
export let group: string;
export let label: string;
export let onChange: (e: Event) => void = () => null;
export let value: string;
</script>
<WidgetLabel classNames="inline-flex items-center {classNames}" {label}>
<svelte:fragment slot="before">
<input
bind:group
class="mr-2 cursor-pointer border-gray-300 checked:text-blue-500 hover:border-gray-300 focus:border-gray-300 focus:ring-1 focus:ring-blue-200 focus:ring-offset-2 dark:border-gray-700 dark:focus:ring-gray-500 dark:focus:ring-offset-gray-925"
on:change={onChange}
type="radio"
{value}
/>
</svelte:fragment>
</WidgetLabel>
|