mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
Supports #7 - Forward events, inline functions - Add style prop - Remove exported props - Bind value for TextInput
17 lines
441 B
Svelte
17 lines
441 B
Svelte
<script>
|
|
let className = undefined;
|
|
export { className as class };
|
|
export let hideLabel = false;
|
|
export let style = undefined;
|
|
|
|
import { cx } from '../../lib';
|
|
|
|
const _class = cx('--form-item', className);
|
|
</script>
|
|
|
|
<div on:click on:mouseover on:mouseenter on:mouseleave class={_class} {style}>
|
|
{#if !hideLabel}
|
|
<span class={cx('--label', '--skeleton')} />
|
|
{/if}
|
|
<div class={cx('--skeleton', '--text-area')} />
|
|
</div>
|