UNPKG

@easy-shadcn/react

Version:

Use shadcn/ui easy&enhance like component library

17 lines (14 loc) 485 B
import { Popover, PopoverTrigger, PopoverContent } from './chunk-SNK5IGUQ.mjs'; import { jsxs, jsx } from 'react/jsx-runtime'; var Popover2 = ({ children, content, contentProps, ...restProps }) => { return /* @__PURE__ */ jsxs(Popover, { ...restProps, children: [ /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children }), /* @__PURE__ */ jsx(PopoverContent, { align: "start", ...contentProps, children: content }) ] }); }; export { Popover2 as Popover };