Capgemini / dcx-react-library

React Library UI/UX agnostic
https://main--6069a6f47f4b9f002171f8e1.chromatic.com
MIT License
111 stars 7 forks source link

Keyboard Shortcut #501

Closed Ibabalola closed 1 year ago

Ibabalola commented 1 year ago

As a developer I want to be able use a KeyboardInput component so that I can easily add keyboard shortcuts

The component should contain:

KeyboardInput behind the scenes is a kbd tag:

<kbd>ctrl + p</kbd> 

The final user will use in this way:

<KeyboardInput>ctrl + p</KeyboardInput>

and the outcome will be something like this:

<kbd>ctrl + p</kbd> 

Tasks:

MDN Docs: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd

Please follow the below to create your branch

git checkout release/0.8
git pull
git checkout -b 'feature/keyboard-input'
daniele-zurico commented 1 year ago

Closed by https://github.com/Capgemini/dcx-react-library/pull/504