1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-11-09 22:09:07 +01:00
.profile/components/design/Section/SectionHeading.tsx

15 lines
351 B
TypeScript
Raw Normal View History

type SectionHeadingProps = React.ComponentPropsWithRef<"h2">
2021-04-18 01:56:23 +02:00
export const SectionHeading = (props: SectionHeadingProps): JSX.Element => {
2021-04-18 01:56:23 +02:00
const { children, ...rest } = props
return (
2024-01-28 01:56:47 +01:00
<h2
{...rest}
2024-04-06 20:25:02 +02:00
className="mb-3 mt-1 text-center text-4xl font-semibold text-primary dark:text-primary-dark"
2024-01-28 01:56:47 +01:00
>
{children}
</h2>
2021-04-18 01:56:23 +02:00
)
2021-06-15 20:35:52 +02:00
}