mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-15 13:43:39 +01:00
16 lines
374 B
TypeScript
16 lines
374 B
TypeScript
import classnames from 'classnames';
|
|
import type { HTMLAttributes } from 'react';
|
|
|
|
export function HotKey({ children }: HTMLAttributes<HTMLSpanElement>) {
|
|
return (
|
|
<span
|
|
className={classnames(
|
|
'bg-gray-400 bg-opacity-20 px-1.5 py-0.5 rounded text-sm',
|
|
'font-mono text-gray-500 tracking-widest',
|
|
)}
|
|
>
|
|
{children}
|
|
</span>
|
|
);
|
|
}
|