mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 03:01:25 +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
|
@ -19,6 +19,7 @@ export const Default = () => ({
|
|||
light: boolean('Light (light)', false),
|
||||
disabled: boolean('Disabled (disabled)', false),
|
||||
invalid: boolean('Invalid (invalid)', false),
|
||||
invalidText: text('Invalid text (invalidText)', 'A valid value is required')
|
||||
invalidText: text('Invalid text (invalidText)', 'A valid value is required'),
|
||||
name: 'combo-box-name'
|
||||
}
|
||||
});
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
export let titleText = '';
|
||||
export let translateWithId = undefined;
|
||||
export let value = '';
|
||||
export let name = Math.random();
|
||||
|
||||
import { afterUpdate } from 'svelte';
|
||||
import WarningFilled16 from 'carbon-icons-svelte/lib/WarningFilled16';
|
||||
|
@ -100,6 +101,7 @@
|
|||
open = true;
|
||||
}}
|
||||
{id}
|
||||
{name}
|
||||
{disabled}
|
||||
{translateWithId}>
|
||||
<input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue