1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-09-19 14:05:53 +02:00
.profile/components/design/Section/SectionHeading.tsx
2022-02-20 15:12:10 +01:00

12 lines
295 B
TypeScript

type SectionHeadingProps = React.ComponentPropsWithRef<'h2'>
export const SectionHeading: React.FC<SectionHeadingProps> = (props) => {
const { children, ...rest } = props
return (
<h2 {...rest} className='mt-1 mb-3 text-center text-4xl font-semibold'>
{children}
</h2>
)
}