mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
20 lines
416 B
Svelte
20 lines
416 B
Svelte
<script>
|
|
/**
|
|
* Set to `true` to hide the label text
|
|
* @type {boolean} [hideLabel=false]
|
|
*/
|
|
export let hideLabel = false;
|
|
</script>
|
|
|
|
<div
|
|
class:bx--form-item={true}
|
|
{...$$restProps}
|
|
on:click
|
|
on:mouseover
|
|
on:mouseenter
|
|
on:mouseleave>
|
|
{#if !hideLabel}
|
|
<span class:bx--label={true} class:bx--skeleton={true} />
|
|
{/if}
|
|
<div class:bx--skeleton={true} class:bx--text-area={true} />
|
|
</div>
|