Files
yaak/src-web/components/core/InlineCode.tsx
2024-09-06 10:43:25 -07:00

17 lines
459 B
TypeScript

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