27 lines
506 B
Svelte
27 lines
506 B
Svelte
<script>
|
|
import { uniqueId } from "lodash";
|
|
export let label;
|
|
export let name;
|
|
export let group;
|
|
export let value;
|
|
export let help;
|
|
let id = uniqueId();
|
|
</script>
|
|
|
|
<div class="form-check">
|
|
<input
|
|
class="form-check-input"
|
|
type="radio"
|
|
{value}
|
|
{name}
|
|
bind:group
|
|
{id}
|
|
/>
|
|
<label class="form-check-label" for={id}>
|
|
{label}
|
|
</label>
|
|
{#if help}
|
|
<span class="text-muted">{help}</span>
|
|
{/if}
|
|
</div>
|