You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add `inherit` type to HotKeys component. The inherit type uses `currentColor` for both text and border, allowing the component to adapt to its parent's color context with a transparent background.
Copy file name to clipboardExpand all lines: .cursor/rules/documentation.mdc
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,7 @@
1
1
---
2
-
globs: *.docs.mdx
2
+
description: When updating the component documentation file *.docs.mdx
3
3
alwaysApply: false
4
4
---
5
-
6
5
# Component Documentation Guidelines
7
6
8
7
This guide outlines the standards and structure for documenting components in the Cube UI Kit. Following these guidelines ensures consistency, clarity, and comprehensive coverage of component features.
Copy file name to clipboardExpand all lines: src/components/content/HotKeys/HotKeys.docs.mdx
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,18 @@ Customizes the root element of the component (Space component).
43
43
44
44
These properties allow direct style application without using the `styles` prop: `width`, `height`, `padding`, `margin`, `gap`, `flow`, `placeContent`, `placeItems`.
45
45
46
+
#### type
47
+
48
+
Defines the visual appearance of the keyboard shortcuts.
49
+
50
+
**Type:**`'default' | 'primary' | 'inherit'`
51
+
52
+
**Default:**`'default'`
53
+
54
+
-`default` - Standard appearance with subtle background and border
55
+
-`primary` - High contrast appearance with white text and border on transparent background
56
+
-`inherit` - Adapts to parent's text color for both text and border, transparent background
57
+
46
58
### Accessibility Properties
47
59
48
60
#### label
@@ -67,6 +79,50 @@ The `mods` property accepts standard Space component modifiers.
67
79
<HotKeys>mod+k</HotKeys>
68
80
```
69
81
82
+
### Types
83
+
84
+
The HotKeys component supports different visual types:
0 commit comments