Files
Compass/web/components/widgets/title.tsx
Martin Braquet ba9b3cfb06 Add pretty formatting (#29)
* Test

* Add pretty formatting

* Fix Tests

* Fix Tests

* Fix Tests

* Fix

* Add pretty formatting fix

* Fix

* Test

* Fix tests

* Clean typeckech

* Add prettier check

* Fix api tsconfig

* Fix api tsconfig

* Fix tsconfig

* Fix

* Fix

* Prettier
2026-02-20 17:32:27 +01:00

12 lines
313 B
TypeScript

import clsx from 'clsx'
import {ReactNode} from 'react'
export function Title(props: {className?: string; children?: ReactNode}) {
const {className, children} = props
return (
<h1 className={clsx('mb-4 inline-block text-2xl font-normal sm:mb-6 sm:text-3xl', className)}>
{children}
</h1>
)
}