Files
Matt Aitken 9ff4c0dbd5 Project-wide Prettier setup (#237)
* Setup project-wide prettier

* Remove old workspace file

* Remove old debugging directives

* New top-level .prettierignore

* Updated Prettier config settings

* Contrubuting guide: Fix for some bad code blocks

* Added more ignores

* Improved the format script command

* printWidth set to 100

* Formatted entire repo (pnpm run format)
2023-08-01 10:21:22 +01:00

22 lines
415 B
TypeScript

import { cn } from "~/utils/cn";
type InputGroupProps = {
children: React.ReactNode;
className?: string;
fullWidth?: boolean;
};
export function InputGroup({ children, className, fullWidth }: InputGroupProps) {
return (
<div
className={cn(
"grid w-full items-center gap-1.5",
fullWidth ? "w-full" : "max-w-md",
className
)}
>
{children}
</div>
);
}