feat: polish envelopes (#2090)

## Description

The rest of the owl
This commit is contained in:
David Nguyen
2025-10-24 16:22:06 +11:00
committed by GitHub
parent 88836404d1
commit 03eb6af69a
141 changed files with 5171 additions and 2402 deletions
+14 -3
View File
@@ -25,14 +25,25 @@ Command.displayName = CommandPrimitive.displayName;
type CommandDialogProps = DialogProps & {
commandProps?: React.ComponentPropsWithoutRef<typeof CommandPrimitive>;
position?: 'start' | 'end' | 'center';
dialogContentClassName?: string;
};
const CommandDialog = ({ children, commandProps, ...props }: CommandDialogProps) => {
const CommandDialog = ({
children,
commandProps,
position = 'center',
dialogContentClassName,
...props
}: CommandDialogProps) => {
return (
<Dialog {...props}>
<DialogContent
className="w-11/12 items-center overflow-hidden rounded-lg p-0 shadow-2xl lg:mt-0"
position="center"
className={cn(
'w-11/12 items-center overflow-hidden rounded-lg p-0 shadow-2xl lg:mt-0',
dialogContentClassName,
)}
position={position}
overlayClassName="bg-background/60"
>
<Command