Introduction
Installation
Next.jsViteLaravelReact RouterRemixAstroTanStack StartTanStack RouterManual InstallationMCP
All componentsTheme
FieldFormInputText FieldTextareaSearch FieldInput OTPNumber FieldNumber FormatSliderCheckboxSwitchRadioSelectCombo BoxList BoxChoice BoxMulti SelectToken FieldNewTag FieldTag GroupCalendarDate FieldDate PickerDate Range PickerRange CalendarTime FieldColor PickerColor FieldColor AreaColor SliderColor SwatchColor Swatch PickerColor ThumbColor WheelDrop ZoneFile Trigger
ButtonButton GroupToggleToggle GroupPreskok Auth Button
EditorHeadingLinkTextKeyboard
CardContainerGrid ListResizableTableTreeSeparatorDescription ListScroll AreaShow MoreToolbar
BreadcrumbsNavbarPaginationTabsSidebar
DialogModalDrawerPopoverPreview TriggerNewSheetTooltipContext MenuDropdownCommandCommand MenuDisclosureMenu
ToastProgress BarProgress CircleMeterLoaderSkeletonNoteBadge
Chart (helpers)Area ChartBar ChartLine ChartPie ChartExperimental ChartsNewExperimental Radial ChartNewExperimental Radar ChartNewBar ListTracker
Async ImageAvatarCarouselPreskok Icon
Text

Keyboard

Display keyboard shortcuts inline and benefit from built-in focus behavior.

View as MarkdownAsk ChatGPT

Shortcuts

useKeyboard accepts shortcut strings such as Mod+s, where Mod resolves to Command on macOS and Control on other platforms. A shortcut handler prevents the browser default and stops propagation unless it returns a different policy.

Installation

npx shadcn@latest add @preskok/keyboard

Usage

import { Keyboard } from "@/components/ui/preskok-ui/keyboard"

export function Example() {
  return <Keyboard keys={["⌘", "K"]} />
}

Text

A simple typography component for consistent text styling.

Card

Content containers with headers, actions, and flexible layouts for organizing information.

On this page

Shortcuts
Installation
Usage
⌘K⇧⌘P
Save ⌘S·Cancel Esc

No shortcut used yet