UNPKG

@veracity/vui

Version:

Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.

27 lines (25 loc) 896 B
import { cs } from "../utils/styles.js"; import { useStyleConfig } from "../core/theme.js"; import vui from "../core/vui.js"; import { PopoverContent } from "../popover/popoverContent.js"; import { useSelectContext } from "./context.js"; import { jsx } from "react/jsx-runtime"; //#region src/select/selectContent.tsx /** Extends PopoverContent to display given content is an overlaying box. */ const SelectContent = vui((props, ref) => { const { className, ...rest } = props; const styles = useStyleConfig("Select", useSelectContext()); return /* @__PURE__ */ jsx(PopoverContent, { className: cs("vui-selectContent", className), column: true, py: 1, ref, ...styles.content, ...rest }); }); SelectContent.displayName = "SelectContent"; //#endregion export { SelectContent, SelectContent as default }; globalThis.__vuiVersion__ = "5.3.1" //# sourceMappingURL=selectContent.js.map