manifold/web/components/fold-tag.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

18 lines
387 B
TypeScript

import clsx from 'clsx'
import { Fold } from '../../common/fold'
export function FoldTag(props: { fold: Fold }) {
const { fold } = props
const { name } = fold
return (
<div
className={clsx(
'rounded-full bg-white px-4 py-2 shadow-md hover:bg-gray-100',
'cursor-pointer'
)}
>
<span className="text-gray-500">{name}</span>
</div>
)
}