팝오버 추가

This commit is contained in:
leedj312
2025-06-18 20:33:15 +09:00
parent d2fd46b20a
commit 4ee6732045
2 changed files with 25 additions and 1 deletions
@@ -19,4 +19,5 @@ export * from "./tab";
export * from "./table";
export * from "./table_div";
export * from "./title";
export * from "./sdmInsertForm";
export * from "./sdmInsertForm";
export * from "./popover_ui"
@@ -0,0 +1,23 @@
import { Popover, PopoverContent, PopoverTrigger } from "@common/components/ui";
export default function PopoverUi({
childrenTriger,
childrenBody,
bodyClassName
}: {
childrenTriger: React.ReactNode;
childrenBody: React.ReactNode;
bodyClassName:string
}) {
return (
<>
<Popover>
<PopoverTrigger>{childrenTriger}</PopoverTrigger>
<PopoverContent className={bodyClassName}>
{childrenBody}
</PopoverContent>
</Popover>
</>
);
}