@vela-ui/react
Version:
Vela UI React components
38 lines (35 loc) • 950 B
JavaScript
import {
DropdownDescription,
DropdownItem,
DropdownLabel,
DropdownSection
} from "./chunk-2KYD4PYX.mjs";
import {
composeTailwindRenderProps
} from "./chunk-OCN72JL6.mjs";
// src/components/list-box.tsx
import { ListBox as AriaListBox } from "react-aria-components";
import { jsx } from "react/jsx-runtime";
function ListBox({ className, ...props }) {
return /* @__PURE__ */ jsx(
AriaListBox,
{
className: composeTailwindRenderProps(
className,
"group bg-popover text-popover-foreground min-w-[8rem] overflow-auto rounded-md border p-1 shadow-md outline-hidden data-[empty]:p-6 data-[empty]:text-center data-[empty]:text-sm"
),
...props
}
);
}
var ListBoxItem = DropdownItem;
var ListBoxSection = DropdownSection;
var ListBoxLabel = DropdownLabel;
var ListBoxDescription = DropdownDescription;
export {
ListBox,
ListBoxItem,
ListBoxSection,
ListBoxLabel,
ListBoxDescription
};