tailwind-ui-library/components/layout/Section.tsx
2024-10-16 15:20:34 +01:00

20 lines
506 B
TypeScript

import { DetailedHTMLProps, HTMLAttributes } from "react";
import { twMerge } from "tailwind-merge";
export default function Section({
...props
}: DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>) {
return (
<section
{...props}
className={twMerge(
"flex flex-col items-center w-full",
"px-4 sm:px-10 py-10",
props.className
)}
>
{props.children}
</section>
);
}