mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 03:01:25 +00:00
feat(components): add Dropdown
Closes #22 - Revise ListBox ancillary components - Pass item id to ListBoxMenuItem in MultiSelect, ComboBox
This commit is contained in:
parent
07d97da8a7
commit
eb70437dc3
22 changed files with 279 additions and 19 deletions
20
src/components/Dropdown/Dropdown.Skeleton.svelte
Normal file
20
src/components/Dropdown/Dropdown.Skeleton.svelte
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<script>
|
||||
let className = undefined;
|
||||
export { className as class };
|
||||
export let inline = false;
|
||||
export let style = undefined;
|
||||
|
||||
import { cx } from '../../lib';
|
||||
</script>
|
||||
|
||||
<div
|
||||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave
|
||||
class={cx('--skeleton', '--dropdown-v2', '--list-box', '--form-item', inline && '--list-box--inline', className)}
|
||||
{style}>
|
||||
<div role="button" class={cx('--list-box__field')}>
|
||||
<span class={cx('--list-box__label')} />
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue