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

21 lines
397 B
TypeScript
Raw Normal View History

2021-04-18 01:56:23 +02:00
import { forwardRef } from 'react'
type SectionHeadingProps = React.ComponentPropsWithRef<'h2'>
export const SectionHeading = forwardRef<
HTMLHeadingElement,
SectionHeadingProps
2021-04-18 01:56:23 +02:00
>((props, ref) => {
const { children, ...rest } = props
return (
<h2
ref={ref}
{...rest}
className='text-4xl font-semibold text-center mt-1 mb-7'
>
{children}
</h2>
2021-04-18 01:56:23 +02:00
)
})