Files
Compass/web/components/widgets/subtitle.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

16 lines
343 B
TypeScript

import clsx from 'clsx'
export function Subtitle(props: {children: React.ReactNode; className?: string}) {
const {children: text, className} = props
return (
<h2
className={clsx(
'text-primary-700 mb-2 mt-6 inline-block text-lg sm:mb-2 sm:mt-6 sm:text-xl',
className,
)}
>
{text}
</h2>
)
}