headplane/app/components/Code.tsx
2024-03-29 16:14:35 -04:00

13 lines
312 B
TypeScript

import clsx from 'clsx'
import { type HTMLProps } from 'react'
type Properties = HTMLProps<HTMLSpanElement>
export default function Code(properties: Properties) {
return (
<code className={clsx('bg-gray-100 dark:bg-zinc-700 p-0.5 rounded-md', properties.className)}>
{properties.children}
</code>
)
}