mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
Add name
and required
to RadioButtonGroup
.
Properties will be inherited in `RadioButton` unless the respective property is set there. Fixes #1036.
This commit is contained in:
parent
108eb5286c
commit
00cab46284
5 changed files with 1650 additions and 1505 deletions
|
@ -16,6 +16,18 @@ export interface RadioButtonGroupProps extends RestProps {
|
|||
*/
|
||||
disabled?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to require the selection of a radio button
|
||||
* @default false
|
||||
*/
|
||||
required?: boolean;
|
||||
|
||||
/**
|
||||
* Specify a name attribute for the radio button inputs
|
||||
* @default ""
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* Specify the legend text
|
||||
* @default ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue