/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/ui/src/components/keybind.stories.tsx
43 строки
851 B
Adam
chore: storybook (#15285)
27 фев 2026, 01:05
Не верифицирован
27 фев 2026, 01:05
05d77b7
Код
Авторство
О чём код?
// @ts-nocheck import * as mod from "./keybind" import { create } from "../storybook/scaffold" const docs = `### Overview Keyboard shortcut pill for displaying keybindings. Pair with menu items or command palettes. ### API - Children render the key sequence text. - Accepts standard span props. ### Variants and states - Single visual style. ### Behavior - Presentational only. ### Accessibility - Ensure text conveys the shortcut (e.g., "Cmd+K"). ### Theming/tokens - Uses \`data-component="keybind"\`. ` const story = create({ title: "UI/Keybind", mod, args: { children: "Cmd+K" } }) export default { title: "UI/Keybind", id: "components-keybind", component: story.meta.component, tags: ["autodocs"], parameters: { docs: { description: { component: docs, }, }, }, } export const Basic = story.Basic