Author: okonet
Views Total: 0
Official Page: Go to website
Last Update: August 20, 2018
License: MIT

The missing JS API of the :focus-within pseudo-class for .

is a component that allows detecting if one of its children has focus. It’s using the CSS :focus-within selector under the hood to detect the focus and should be considered as a missing JS API for focus-within.

FocusWithin will fire onFocus once one of its children will receive focus. Similarly onBlur is going to be fired once focus is left all its children.

Preview:

CSS Focus-Within For React-min




Source link https://.com/css-focus-within-for-react/

LEAVE A REPLY

Please enter your comment!
Please enter your name here