Component docs
Loading
"use client";
import { ShortcutList } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
items (required) | readonly ShortcutItem[] | — | Items to render. |
itemsrequiredreadonly ShortcutItem[]
Items to render.
Other props are passed to the root element (HTMLAttributes<HTMLUListElement>), including className, style, id and aria-* attributes.
const shortcuts = [
{ keys: ["Mod", "Z"], label: "Undo" },
{ keys: ["Mod", "Shift", "Z"], label: "Redo" },
];
<ShortcutList items={shortcuts} />