new-personal-site/components/lib/layout/Section.tsx

25 lines
594 B
TypeScript
Raw Normal View History

2024-12-09 15:36:17 +00:00
import { DetailedHTMLProps, HTMLAttributes } from "react";
import { twMerge } from "tailwind-merge";
/**
* # General Section
* @className twui-section
*/
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",
"twui-section",
props.className
)}
>
{props.children}
</section>
);
}