Module

React.Basic.Emotion

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

#IsStyle Source

class IsStyle a  where

Members

#IsStyleProperty Source

class IsStyleProperty a  where

Members

#element Source

element :: forall props. ReactComponent { className :: String | props } -> { className :: String, css :: Style | props } -> JSX

Create a JSX node from a ReactComponent, by providing the props.

This function is identical to React.Basic.element plus Emotion's css prop.

#css Source

css :: forall r. Homogeneous r StyleProperty => Record r -> Style