mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +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
|
@ -1,4 +1,5 @@
|
|||
<script>
|
||||
export let id = undefined;
|
||||
export let active = false;
|
||||
export let highlighted = false;
|
||||
|
||||
|
@ -9,7 +10,8 @@
|
|||
on:click
|
||||
on:mouseenter
|
||||
on:mouseleave
|
||||
class={cx('--list-box__menu-item', active && '--list-box__menu-item--active', highlighted && '--list-box__menu-item--highlighted')}>
|
||||
class={cx('--list-box__menu-item', active && '--list-box__menu-item--active', highlighted && '--list-box__menu-item--highlighted')}
|
||||
{id}>
|
||||
<div class={cx('--list-box__menu-item__option')}>
|
||||
<slot />
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue