immich/web/src/lib/elements/RadioButton.svelte
Alex b669714bda
chore: lower case text + facelift (#25263)
* chore: lower case text

* wip

* wip

* pr feedback

* pr feedback
2026-01-21 16:41:09 +00:00

17 lines
419 B
Svelte

<script lang="ts">
interface Props {
id: string;
label: string;
name: string;
value: string;
group?: string | undefined;
}
let { id, label, name, value, group = $bindable(undefined) }: Props = $props();
</script>
<div class="flex items-center gap-2">
<input type="radio" {name} {id} {value} class="focus-visible:ring" bind:group />
<label for={id} class="text-sm">{label}</label>
</div>