GHHG10/CodeServer / opencode /packages /ui /src /components /keybind.stories.tsx
GHHG10's picture
download
raw
851 Bytes
// @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

Xet Storage Details

Size:
851 Bytes
·
Xet hash:
3c44107fe6b33d1c1dac4b08cb2d293471f79c46ba0636861ec1ba78ff4ea0fb

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.