Function
Shortcut
({ keys, className, children }: ShortcutProps)
Source from the content-addressed store, hash-verified
| 449 | * ``` |
| 450 | */ |
| 451 | const Shortcut = ({ keys, className, children }: ShortcutProps) => ( |
| 452 | <span className={cn('flex items-center gap-2', className)}> |
| 453 | {children && <span>{children}</span>} |
| 454 | <span className='opacity-70'>{keys}</span> |
| 455 | </span> |
| 456 | ) |
| 457 | Shortcut.displayName = 'Tooltip.Shortcut' |
| 458 | |
| 459 | interface PreviewProps { |
Callers
nothing calls this directly
Tested by
no test coverage detected