manifold/web/components/title.tsx
Austin Chen 7338bdd47a
Automatically sort Tailwind classes with Prettier (#45)
* Add Prettier Tailwind plugin

* Autoformat Tailwind classes with Prettier
2022-02-11 10:40:22 -08:00

16 lines
308 B
TypeScript

import clsx from 'clsx'
export function Title(props: { text: string; className?: string }) {
const { text, className } = props
return (
<h1
className={clsx(
'my-4 inline-block text-2xl text-indigo-700 sm:my-6 sm:text-3xl',
className
)}
>
{text}
</h1>
)
}