260703_01_FST: First Commit

This commit is contained in:
2026-07-03 10:40:45 +09:00
commit b11d47b14e
65 changed files with 11002 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
import type { HTMLAttributes, ReactNode } from "react";
import { renderAsChild } from "@/lib/as-child";
import { cn } from "@/lib/utils";
export interface PopoverProps {
open?: boolean;
onOpenChange?: (open: boolean) => void;
modal?: boolean;
children?: ReactNode;
}
export function Popover({ children }: PopoverProps) {
return <>{children}</>;
}
export function PopoverTrigger({
asChild,
children,
...props
}: HTMLAttributes<HTMLElement> & { asChild?: boolean }) {
return renderAsChild(asChild, children, props);
}
export interface PopoverContentProps extends HTMLAttributes<HTMLDivElement> {
align?: "start" | "center" | "end";
side?: "top" | "right" | "bottom" | "left";
sideOffset?: number;
}
export function PopoverContent({ className, align, side, sideOffset, ...props }: PopoverContentProps) {
return <div data-align={align} data-side={side} className={cn(className)} {...props} />;
}