mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
add name to form components
This commit is contained in:
parent
64e914ff8c
commit
6fdb8d10ed
32 changed files with 82 additions and 26 deletions
|
@ -5,6 +5,7 @@
|
|||
export let helperText = '';
|
||||
export let hideLabel = false;
|
||||
export let id = Math.random();
|
||||
export let name = Math.random();
|
||||
export let inline = false;
|
||||
export let invalid = false;
|
||||
export let invalidText = '';
|
||||
|
@ -62,7 +63,9 @@
|
|||
selectedValue.set(target.value);
|
||||
}}
|
||||
on:blur
|
||||
{id}>
|
||||
{id}
|
||||
{name}
|
||||
>
|
||||
<slot />
|
||||
</select>
|
||||
<ChevronDown16 class={cx('--select__arrow')} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue