added dropdown menu component (shadcn)

This commit is contained in:
Oliver Bryan
2025-12-27 04:43:04 +00:00
parent ef78697ab6
commit d32ac015f8
2 changed files with 75 additions and 9 deletions

View File

@@ -68,6 +68,7 @@ function SelectContent({
<SelectPrimitive.Portal>
<SelectPrimitive.Content
data-slot="select-content"
data-align={align}
className={cn(
"bg-popover text-popover-foreground",
"data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95",
@@ -79,6 +80,7 @@ function SelectContent({
"overflow-y-auto border shadow-md",
position === "popper" &&
"data-[side=bottom]:translate-y-1 data-[side=bottom]:-translate-x-1.5 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1 data-[side=top]:-translate-x-0.5",
position === "popper" && align === "start" && "data-[side=bottom]:-translate-x-0",
className,
)}
position={position}