diff --git a/src/lib/components/radio-group/RadioGroup.svelte b/src/lib/components/radio-group/RadioGroup.svelte index c5838b6..d200a1a 100644 --- a/src/lib/components/radio-group/RadioGroup.svelte +++ b/src/lib/components/radio-group/RadioGroup.svelte @@ -43,6 +43,14 @@ return context; } + + type TRadioGroupProps< + TSlotProps extends {}, + TAsProp extends SupportedAs + > = TPassThroughProps & { + value: StateDefinition["value"]; + disabled?: boolean; + }; @@ -208,14 +224,14 @@ {...{ ...$$restProps, ...propsWeControl }} {as} use={[...use, forwardEvents]} - slotProps={{}} + {slotProps} name={"RadioGroup"} bind:el={radioGroupRef} aria-labelledby={labelledby} aria-describedby={describedby} on:keydown={handleKeyDown} > - + diff --git a/src/lib/components/radio-group/RadioGroupOption.svelte b/src/lib/components/radio-group/RadioGroupOption.svelte index 0eec933..2390070 100644 --- a/src/lib/components/radio-group/RadioGroupOption.svelte +++ b/src/lib/components/radio-group/RadioGroupOption.svelte @@ -1,3 +1,13 @@ + +