feat(text-input-skeleton)!: remove forwarded events, props

This commit is contained in:
Eric Liu 2024-04-29 22:04:18 -07:00
commit f7d8cd6e95
4 changed files with 9 additions and 60 deletions

View file

@ -1,25 +1,11 @@
<script>
// @ts-check
/** Set to `true` to hide the label text */
export let hideLabel = false;
/**
* Specify the div HTML attributes for the skeleton container
* @type {import('svelte/elements').HTMLDivAttributes}
*/
export let divAttributes = {};
</script>
<!-- svelte-ignore a11y-mouse-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
class:bx--form-item="{true}"
{...divAttributes}
on:click
on:pointerup
on:pointerover
on:pointerenter
on:pointerleave
>
<div class:bx--form-item="{true}">
{#if !hideLabel}
<span class:bx--label="{true}" class:bx--skeleton="{true}"></span>
{/if}