added cn to join classNames in kbd component

This commit is contained in:
Junaid Khan 2026-04-18 21:29:53 -04:00 committed by Junaid-Kn
parent 9c84e55e01
commit 30ae63bdf0
2 changed files with 12 additions and 5 deletions

View File

@ -99,9 +99,7 @@ function ToolbarLeftSection() {
const { shortcuts } = useKeyboardShortcutsHelp();
const shortcutMap = Object.fromEntries(
shortcuts.map(s => [s.action, s])
);
console.log(shortcutMap);
);
const selectedElement =

View File

@ -1,9 +1,18 @@
"use client"
import * as React from "react";
import { cn } from "@/utils/ui";
type KbdProps = {
children: React.ReactNode;
className?: string;
}
export const Kbd = (
{
children,
className
export const Kbd = ({ children }: { children: React.ReactNode }) => {
}: KbdProps) => {
return (
<kbd className="rounded bg-muted px-1.5 py-0.5 text-xs font-mono border">
<kbd className={cn("rounded bg-muted px-1.5 py-0.5 text-xs font-mono border", className)}>
{children}
</kbd>
);