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

12 lines
295 B
TypeScript
Raw Normal View History

2021-04-18 01:56:23 +02:00
type SectionHeadingProps = React.ComponentPropsWithRef<'h2'>
2021-06-15 20:35:52 +02:00
export const SectionHeading: React.FC<SectionHeadingProps> = (props) => {
2021-04-18 01:56:23 +02:00
const { children, ...rest } = props
return (
2021-12-04 15:52:51 +01:00
<h2 {...rest} className='mt-1 mb-3 text-center text-4xl font-semibold'>
{children}
</h2>
2021-04-18 01:56:23 +02:00
)
2021-06-15 20:35:52 +02:00
}