Module

React.Aria.Button

Package
purescript-react-aria
Repository
rowtype-yoga/purescript-react-aria

#useButton Source

useButton :: forall attrsIn attrsIn_. Union attrsIn attrsIn_ ButtonPropsImpl => Record attrsIn -> Ref (Nullable Node) -> Hook UseButton { buttonProps :: ButtonPropsResult, isPressed :: Boolean }

#UseButton Source

data UseButton t0

#ButtonPropsImpl Source

type ButtonPropsImpl :: Row Typetype ButtonPropsImpl = ("aria-controls" :: String, "aria-describedby" :: String, "aria-details" :: String, "aria-expanded" :: Boolean, "aria-haspopup" :: OneOf Boolean String, "aria-label" :: String, "aria-labelledby" :: String, "aria-pressed" :: Boolean, elementType :: String, excludeFromTabOrder :: Boolean, href :: String, isDisabled :: Boolean, onPress :: EventHandler, onPressChange :: EffectFn1 Boolean Unit, onPressEnd :: EventHandler, onPressStart :: EventHandler, onPressUp :: EventHandler, preventFocusOnPress :: Boolean, rel :: String, target :: String, type :: String)

#PressEventImpl Source

type PressEventImpl = { ctrlKey :: Boolean, metaKey :: Boolean, pointerType :: String, shiftKey :: Boolean, target :: HTMLElement, type :: String }