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.
The basic Keyboard
usage.
You can apply a modifiers with the command
, shift
, option
, ctrl
prop.
You can apply a combination with the option ctrl
prop for example.
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', ... | - |
Previous
Input
Next
Link