mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
19 lines
357 B
Svelte
19 lines
357 B
Svelte
<script>
|
|
let className = undefined;
|
|
export { className as class };
|
|
export let id = Math.random();
|
|
export let style = undefined;
|
|
|
|
import { cx } from '../../lib';
|
|
|
|
$: menuId = `menu-${id}`;
|
|
</script>
|
|
|
|
<div
|
|
role="listbox"
|
|
id={menuId}
|
|
aria-label={$$props['aria-label']}
|
|
class={cx('--list-box__menu', className)}
|
|
{style}>
|
|
<slot />
|
|
</div>
|