mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-12-08 00:44:30 +01:00
12 lines
298 B
TypeScript
12 lines
298 B
TypeScript
type SectionHeadingProps = React.ComponentPropsWithRef<'h2'>
|
|
|
|
export const SectionHeading = (props: SectionHeadingProps): JSX.Element => {
|
|
const { children, ...rest } = props
|
|
|
|
return (
|
|
<h2 {...rest} className='mb-3 mt-1 text-center text-4xl font-semibold'>
|
|
{children}
|
|
</h2>
|
|
)
|
|
}
|