mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
Supports #17 Fixes broken storybook. TODO: Define stories using other components (e.g. NumberInput, Select...)
14 lines
290 B
Svelte
14 lines
290 B
Svelte
<script>
|
|
let className = undefined;
|
|
export { className as class };
|
|
export let id = Math.random();
|
|
export let style = undefined;
|
|
|
|
import { cx } from '../../lib';
|
|
|
|
const _class = cx('--form-item', className);
|
|
</script>
|
|
|
|
<label for={id} class={_class} {style}>
|
|
<slot />
|
|
</label>
|