Unified configuration for managing focus on components.
Allow paack-ui to know the one useful thing for visually focus feedback: Is it focused?
Focus.focus TrueAllow paack-ui to message a feedback when focus enters the element.
Focus.focus model.isInputFocused
|> Focus.withOnEnter Msg.InputFocusedAllow paack-ui to message a feedback when focus leaves the element.
Focus.focus model.isInputFocused
|> Focus.withOnLeave Msg.InputFocusLostMakes the element keyboard-interactive.
Focus.focus model.isInputFocused
|> Focus.withTabIndex -1Applies [Focus]#Focus into Elm UI attributes.
Element.el [ focusAttributes someConfig ] <|
Element.text "Some content"
Required configuration for managing focus.