new-personal-site/components/lib/layout/H5.tsx
2024-12-09 16:36:17 +01:00

20 lines
456 B
TypeScript

import { DetailedHTMLProps, HTMLAttributes } from "react";
import { twMerge } from "tailwind-merge";
/**
* # H5 Headers
* @className twui-h5
*/
export default function H5({
...props
}: DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) {
return (
<h5
{...props}
className={twMerge("text-sm mb-4", "twui-h5", props.className)}
>
{props.children}
</h5>
);
}