carbon-design-system / carbon-components-svelte

Svelte implementation of the Carbon Design System
https://svelte.carbondesignsystem.com
Apache License 2.0
2.68k stars 261 forks source link

RadioButton `value` type should allow numbers #1867

Closed metonym closed 9 months ago

metonym commented 9 months ago

Discussed in https://github.com/carbon-design-system/carbon-components-svelte/discussions/1866

Originally posted by **hslee2008** December 16, 2023 Currently, carbon-components-svelte only allows type of `string | undefined` in value (RadioButton). ![image](https://github.com/carbon-design-system/carbon-components-svelte/assets/78584173/6d2b41de-4704-4088-ae4a-aeeb783bf74f) But there are many cases where the value needs to be numbers. I mean, putting in numbers does work but the types only say `string` is allowed.
metonym commented 9 months ago

Fixed in v0.82.7