feat(radio-button): add legendText prop to RadioButtonGroup

This commit is contained in:
Eric Y Liu 2021-03-05 14:38:00 -08:00
commit 621fea5f42
7 changed files with 123 additions and 96 deletions

View file

@ -14,6 +14,12 @@ export interface RadioButtonGroupProps
*/
disabled?: boolean;
/**
* Specify the legend text
* @default ""
*/
legendText?: string;
/**
* Specify the label position
* @default "right"
@ -41,5 +47,5 @@ export default class RadioButtonGroup extends SvelteComponentTyped<
mouseleave: WindowEventMap["mouseleave"];
change: CustomEvent<any>;
},
{ default: {} }
{ default: {}; legendText: {} }
> {}