mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 19:01:05 +00:00
feat(text-input-skeleton)!: remove forwarded events, props
This commit is contained in:
parent
d7f0ed1947
commit
f7d8cd6e95
4 changed files with 9 additions and 60 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue