mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(radio-button-group): add name
and required
props (#1037)
Fixes #1036
This commit is contained in:
parent
108eb5286c
commit
24e2a8874f
10 changed files with 98 additions and 36 deletions
2
types/RadioButton/RadioButton.svelte.d.ts
vendored
2
types/RadioButton/RadioButton.svelte.d.ts
vendored
|
@ -54,7 +54,7 @@ export interface RadioButtonProps extends RestProps {
|
|||
|
||||
/**
|
||||
* Specify a name attribute for the radio button input
|
||||
* @default ""
|
||||
* @default undefined
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
|
|
|
@ -16,6 +16,18 @@ export interface RadioButtonGroupProps extends RestProps {
|
|||
*/
|
||||
disabled?: boolean;
|
||||
|
||||
/**
|
||||
* Set to `true` to require the selection of a radio button
|
||||
* @default undefined
|
||||
*/
|
||||
required?: boolean;
|
||||
|
||||
/**
|
||||
* Specify a name attribute for the radio button inputs
|
||||
* @default undefined
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* Specify the legend text
|
||||
* @default ""
|
||||
|
|
1
types/UIShell/Header.svelte.d.ts
vendored
1
types/UIShell/Header.svelte.d.ts
vendored
|
@ -30,6 +30,7 @@ export interface HeaderProps extends RestProps {
|
|||
|
||||
/**
|
||||
* Specify the company name.
|
||||
*
|
||||
* Alternatively, use the named slot "company" (e.g., `<span slot="company">...</span>`)
|
||||
* @default undefined
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue