mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
- Inline class assignments to avoid script-level clutter - Ignore a11y-missing-attribute instead of redundant href
19 lines
419 B
Svelte
19 lines
419 B
Svelte
<script>
|
|
let className = undefined;
|
|
export { className as class };
|
|
export let small = false;
|
|
export let style = undefined;
|
|
|
|
import { cx } from '../../lib';
|
|
</script>
|
|
|
|
<div
|
|
on:click
|
|
on:mouseover
|
|
on:mouseenter
|
|
on:mouseleave
|
|
class={cx('--skeleton', !small && '--search--xl', small && '--search--sm', className)}
|
|
{style}>
|
|
<span class={cx('--label')} />
|
|
<div class={cx('--search-input')} />
|
|
</div>
|