mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 08:09:51 +00:00
feat: add Keybind component for displaying keyboard shortcuts
This commit is contained in:
parent
d645e8bbe1
commit
1250486ddf
3 changed files with 39 additions and 0 deletions
18
packages/ui/src/components/keybind.css
Normal file
18
packages/ui/src/components/keybind.css
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
[data-component="keybind"] {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
height: 20px;
|
||||
padding: 0 8px;
|
||||
border-radius: 2px;
|
||||
background: var(--surface-base);
|
||||
box-shadow: var(--shadow-xxs-border);
|
||||
|
||||
/* text-12-medium */
|
||||
font-family: var(--font-family-sans);
|
||||
font-size: 12px;
|
||||
font-weight: var(--font-weight-medium);
|
||||
line-height: 1;
|
||||
color: var(--text-weak);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue