Module

React.Basic.DOM.Internal

Package
purescript-react-basic-dom
Repository
lumihq/purescript-react-basic-dom

#CSS Source

data CSS :: Type

An abstract type representing records of CSS attributes.

Instances

#css Source

css :: forall css. Record css -> CSS

Create a value of type CSS (which can be provided to the style property) from a plain record of CSS attributes.

For example:

div { style: css { padding: "5px" } } [ text "This text is padded." ]

#mergeStyles Source

mergeStyles :: Array CSS -> CSS

Merge styles from right to left. Uses Object.assign.

For example:

style: mergeCSS [ (css { padding: "5px" }), props.style ]

#SharedSVGProps Source

type SharedSVGProps specific = (className :: String, id :: String, lang :: String, onBlur :: EventHandler, onClick :: EventHandler, onFocus :: EventHandler, onMouseDown :: EventHandler, onMouseEnter :: EventHandler, onMouseLeave :: EventHandler, onMouseMove :: EventHandler, onMouseOut :: EventHandler, onMouseOver :: EventHandler, onMouseUp :: EventHandler, style :: CSS, tabIndex :: String, xlinkActuate :: String, xlinkArcrole :: String, xlinkHref :: String, xlinkRole :: String, xlinkShow :: String, xlinkTitle :: String, xlinkType :: String, xmlBase :: String, xmlLang :: String, xmlSpace :: String, xmlns :: String, xmlnsXlink :: String | specific)

#unsafeCreateDOMComponent Source

#unsafeCreateDOMComponent_ Source

unsafeCreateDOMComponent_ :: forall props. (ReactComponent props -> props -> JSX) -> String -> Effect (ReactComponent props)