Add/improve slotProps handling for Label & Description

* Add slot props support to Label
* Refactor slot props usage in Description
* Add missing slot props to RadioGroupLabel and RadioGroupDescription
This commit is contained in:
Ryan Gossiaux
2022-01-27 16:02:48 -08:00
parent 0430f2d6b6
commit cdc0d86044
7 changed files with 84 additions and 12 deletions

View File

@@ -74,8 +74,8 @@
};
</script>
<DescriptionProvider name="RadioGroupDescription" let:describedby>
<LabelProvider name="RadioGroupLabel" let:labelledby>
<DescriptionProvider name="RadioGroupDescription" {slotProps} let:describedby>
<LabelProvider name="RadioGroupLabel" {slotProps} let:labelledby>
<Render
{...{ ...$$restProps, ...propsWeControl }}
{as}