Files
yaak-mountain-loop/src-web/components/core/InlineCode.tsx
Gregory Schier c9b4e6181c Use new theme vars (#63)
This PR swaps the theme to use the new stuff from the Theme Studio
2024-08-13 07:44:28 -07:00

16 lines
434 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-secondary border border-border-subtle',
'px-1.5 py-0.5 rounded text shadow-inner break-words',
)}
{...props}
/>
);
}