mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
feat(components): add Search component
This commit is contained in:
parent
a56e45058a
commit
8ff35b7642
7 changed files with 137 additions and 3 deletions
15
src/components/Search/Search.Skeleton.svelte
Normal file
15
src/components/Search/Search.Skeleton.svelte
Normal file
|
@ -0,0 +1,15 @@
|
|||
<script>
|
||||
let className = undefined;
|
||||
export { className as class };
|
||||
export let small = false;
|
||||
export let props = {};
|
||||
|
||||
import { cx } from '../../lib';
|
||||
|
||||
const _class = cx('--skeleton', !small && '--search--xl', small && '--search--sm', className);
|
||||
</script>
|
||||
|
||||
<div {...props} class={_class}>
|
||||
<span class={cx('--label')} />
|
||||
<div class={cx('--search-input')} />
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue