tailwind-ui-library/components/layout/Row.tsx
Benjamin Toby f73b56cdc4 Updates
2024-10-17 09:06:54 +01:00

24 lines
546 B
TypeScript

import { DetailedHTMLProps, HTMLAttributes } from "react";
import { twMerge } from "tailwind-merge";
/**
* # Flexbox Row
* @className twui-row
*/
export default function Row({
...props
}: DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>) {
return (
<div
{...props}
className={twMerge(
"flex flex-row items-center gap-2 flex-wrap",
"twui-row",
props.className
)}
>
{props.children}
</div>
);
}