Files
yaak-mountain-loop/src-web/components/core/InlineCode.tsx
2024-08-15 05:58:09 -07:00

16 lines
424 B
TypeScript

import classNames from 'classnames';
import type { HTMLAttributes } from 'react';
export function InlineCode({ className, ...props }: HTMLAttributes<HTMLSpanElement>) {
return (
<code
className={classNames(
className,
'font-mono text-shrink bg-surface-highlight border border-border-subtle',
'px-1.5 py-0.5 rounded text shadow-inner break-words',
)}
{...props}
/>
);
}