Keyboard
Display keyboard input that triggers an action.
The Keyboard can only display layout styles, if you need to bind the keyboard events, please read subsection useKeyboard.
General
The basic Keyboard usage.
Modifiers
You can apply a modifiers with the command, shift, option, ctrl prop.
Combination
You can apply a combination with the option ctrl prop for example.
APIs
Keyboard.Props
| Attribute | Description | Type | Accepted values | Default |
|---|---|---|---|---|
| command | show command key | boolean | - | false |
| shift | show shift key | boolean | - | false |
| option | show option key | boolean | - | false |
| ctrl | show ctrl key | boolean | - | false |
| ... | native props | KeygenHTMLAttributes | 'keyType', 'className', ... | - |