mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(radio-button): allow value
type to be a number (#1868)
This commit is contained in:
parent
1d82eb67a0
commit
479225711a
6 changed files with 21 additions and 18 deletions
2
types/RadioButton/RadioButton.svelte.d.ts
vendored
2
types/RadioButton/RadioButton.svelte.d.ts
vendored
|
@ -8,7 +8,7 @@ export interface RadioButtonProps extends RestProps {
|
|||
* Specify the value of the radio button
|
||||
* @default ""
|
||||
*/
|
||||
value?: string;
|
||||
value?: string | number;
|
||||
|
||||
/**
|
||||
* Set to `true` to check the radio button
|
||||
|
|
|
@ -8,7 +8,7 @@ export interface RadioButtonGroupProps extends RestProps {
|
|||
* Set the selected radio button value
|
||||
* @default undefined
|
||||
*/
|
||||
selected?: string;
|
||||
selected?: string | number;
|
||||
|
||||
/**
|
||||
* Set to `true` to disable the radio buttons
|
||||
|
@ -64,7 +64,7 @@ export interface RadioButtonGroupProps extends RestProps {
|
|||
export default class RadioButtonGroup extends SvelteComponentTyped<
|
||||
RadioButtonGroupProps,
|
||||
{
|
||||
change: CustomEvent<string>;
|
||||
change: CustomEvent<string | number>;
|
||||
click: WindowEventMap["click"];
|
||||
mouseover: WindowEventMap["mouseover"];
|
||||
mouseenter: WindowEventMap["mouseenter"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue