MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / KeyCap

Function KeyCap

packages/app-core/src/components/EditorSelectionToolbar.tsx:70–76  ·  view source on GitHub ↗
({ binding }: { binding: string })

Source from the content-addressed store, hash-verified

68}
69
70function KeyCap({ binding }: { binding: string }): JSX.Element {
71 return (
72 <kbd className="rounded border border-paper-300 bg-paper-200/70 px-1.5 py-0.5 font-mono text-[11px] leading-none text-ink-600">
73 {formatKeyToken(binding)}
74 </kbd>
75 )
76}
77
78/**
79 * A Notion-style floating "bubble" toolbar over a text selection: a "Turn into"

Callers

nothing calls this directly

Calls 1

formatKeyTokenFunction · 0.90

Tested by

no test coverage detected