mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +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
|
@ -1,5 +1,8 @@
|
|||
<script>
|
||||
/** Specify the value of the radio button */
|
||||
/**
|
||||
* Specify the value of the radio button
|
||||
* @type {string | number}
|
||||
*/
|
||||
export let value = "";
|
||||
|
||||
/** Set to `true` to check the radio button */
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<script>
|
||||
/**
|
||||
* @event {string} change
|
||||
* @event {string | number} change
|
||||
*/
|
||||
|
||||
/**
|
||||
* Set the selected radio button value
|
||||
* @type {string}
|
||||
* @type {string | number}
|
||||
*/
|
||||
export let selected = undefined;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue