A component that enables keyboard-only-outlines so that outlines are only visible when using the keyboard.
$ npm install @moxy/react-keyboard-only-outlines
You should use this component just once in your project:
import KeyboardOnlyOutlines from '@moxy/react-keyboard-only-outlines';<KeyboardOnlyOutlines><MyApp /></KeyboardOnlyOutlines>
|stylesheetTarget||DOM Node||See keyboard-only-outlines||The DOM node where to insert the stylesheet with styles to disable the outlines|
|styles||string||See keyboard-only-outlines||The styles to apply when a focus event is caused by mouse navigation|
$ npm test$ npm test -- --watch # during development
Released under the MIT License.