Module

Beta.DOM.Internal

Package
purescript-react-basic-dom-beta
Repository
rowtype-yoga/purescript-react-basic-dom-beta

#createElementImpl Source

createElementImpl :: forall component props children. Fn3 component props children JSX

#createElementNoKidsImpl Source

createElementNoKidsImpl :: forall component props. Fn2 component props JSX

#createBuiltinElement Source

createBuiltinElement :: forall props children. String -> props -> children -> JSX

#createBuiltinElement_ Source

createBuiltinElement_ :: forall props. String -> props -> JSX

#createElement Source

createElement :: forall props props_ children. IsJSX children => Cons "children" (ReactChildren JSX) props_ props => ReactComponent (Record props) -> Record props_ -> children -> JSX

#createElement_ Source

createElement_ :: forall props. ReactComponent props -> props -> JSX

#unsafeWithChildrenImpl Source

unsafeWithChildrenImpl :: forall c p. Fn2 c p p

#unsafeWithChildren Source

unsafeWithChildren :: forall c p. c -> p -> p

#modifyIfDefinedImpl Source

modifyIfDefinedImpl :: forall a b p. Fn3 String (a -> b) p p

#modifyIfDefined Source

modifyIfDefined :: forall a b p. String -> (a -> b) -> p -> p

#IsJSX Source

class IsJSX a 

Instances

#appendIsJSX Source

appendIsJSX :: forall a b. IsJSX a => IsJSX b => a -> b -> JSX

#(++) Source

Operator alias for Beta.DOM.Internal.appendIsJSX (right-associative / precedence 0)

#noJSX Source

#FFIComponent Source

type FFIComponent :: Row Type -> Typetype FFIComponent props = forall givenProps nonDataProps kids. IsJSX kids => CoerceReactProps (Record givenProps) (Record nonDataProps) (Record props) => Record givenProps -> kids -> JSX

#FFIRawTextComponent Source

type FFIRawTextComponent :: Row Type -> Typetype FFIRawTextComponent props = forall givenProps nonDataProps. CoerceReactProps (Record givenProps) (Record nonDataProps) (Record props) => Record givenProps -> String -> JSX

#FFIComponent_ Source

type FFIComponent_ :: Row Type -> Typetype FFIComponent_ props = forall givenProps nonDataProps. CoerceReactProps (Record givenProps) (Record nonDataProps) (Record props) => Record givenProps -> JSX

#coerceReactProps Source

coerceReactProps :: forall props nonDataProps targetProps. CoerceReactProps props nonDataProps targetProps => props -> targetProps

#CoerceReactProps Source

class CoerceReactProps :: forall k. Type -> k -> Type -> Constraintclass CoerceReactProps props nonDataProps targetProps | props -> nonDataProps

Instances

#WithoutDataPropsRL Source

class WithoutDataPropsRL :: RowList Type -> RowList Type -> Constraintclass WithoutDataPropsRL (from :: RowList Type) (to :: RowList Type) | from -> to

Instances

#MaybeWithoutDataPropRL Source

class MaybeWithoutDataPropRL :: Boolean -> Symbol -> Type -> RowList Type -> RowList Type -> Constraintclass MaybeWithoutDataPropRL (exclude :: Boolean) (propName :: Symbol) (propVal :: Type) (from :: RowList Type) (to :: RowList Type) | exclude propName propVal from -> to

Instances

#WithoutDataProps Source

class WithoutDataProps props without  where

Members

Instances

#DoesStartWith Source

class DoesStartWith :: Symbol -> Symbol -> Boolean -> Constraintclass DoesStartWith (prefix :: Symbol) (full :: Symbol) (match :: Boolean) | prefix full -> match

A class that ensures a key in a row starts with a prefix.

Instances

#DoesStartWithChar Source

class DoesStartWithChar :: Symbol -> Symbol -> Symbol -> Symbol -> Boolean -> Constraintclass DoesStartWithChar (prefixH :: Symbol) (prefixT :: Symbol) (fullH :: Symbol) (fullT :: Symbol) (match :: Boolean) | prefixH prefixT fullH fullT -> match

Instances

#CSS Source

data CSS

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 ]
Modules
Beta.DOM
Beta.DOM.Attributes
Beta.DOM.Attributes.AutoCapitalize
Beta.DOM.Attributes.Dir
Beta.DOM.Attributes.InputMode
Beta.DOM.Attributes.Target
Beta.DOM.Attributes.YesOrNo
Beta.DOM.Client
Beta.DOM.Event
Beta.DOM.HTML
Beta.DOM.HTML.A
Beta.DOM.HTML.Abbr
Beta.DOM.HTML.Address
Beta.DOM.HTML.Area
Beta.DOM.HTML.Article
Beta.DOM.HTML.Aside
Beta.DOM.HTML.Audio
Beta.DOM.HTML.B
Beta.DOM.HTML.Base
Beta.DOM.HTML.Bdi
Beta.DOM.HTML.Bdo
Beta.DOM.HTML.Blockquote
Beta.DOM.HTML.Body
Beta.DOM.HTML.Br
Beta.DOM.HTML.Button
Beta.DOM.HTML.Canvas
Beta.DOM.HTML.Caption
Beta.DOM.HTML.Cite
Beta.DOM.HTML.Code
Beta.DOM.HTML.Col
Beta.DOM.HTML.ColGroup
Beta.DOM.HTML.Data
Beta.DOM.HTML.DataList
Beta.DOM.HTML.Dd
Beta.DOM.HTML.Del
Beta.DOM.HTML.Details
Beta.DOM.HTML.Dfn
Beta.DOM.HTML.Dialog
Beta.DOM.HTML.Div
Beta.DOM.HTML.Dl
Beta.DOM.HTML.Dt
Beta.DOM.HTML.Em
Beta.DOM.HTML.Embed
Beta.DOM.HTML.FieldSet
Beta.DOM.HTML.Figcaption
Beta.DOM.HTML.Figure
Beta.DOM.HTML.Footer
Beta.DOM.HTML.Form
Beta.DOM.HTML.H
Beta.DOM.HTML.HTML
Beta.DOM.HTML.Head
Beta.DOM.HTML.Header
Beta.DOM.HTML.Hr
Beta.DOM.HTML.I
Beta.DOM.HTML.IFrame
Beta.DOM.HTML.Img
Beta.DOM.HTML.Input
Beta.DOM.HTML.Kbd
Beta.DOM.HTML.Label
Beta.DOM.HTML.Legend
Beta.DOM.HTML.Li
Beta.DOM.HTML.Link
Beta.DOM.HTML.Main
Beta.DOM.HTML.Map
Beta.DOM.HTML.Mark
Beta.DOM.HTML.Menu
Beta.DOM.HTML.Meta
Beta.DOM.HTML.Meter
Beta.DOM.HTML.Nav
Beta.DOM.HTML.NoScript
Beta.DOM.HTML.Object
Beta.DOM.HTML.Ol
Beta.DOM.HTML.Optgroup
Beta.DOM.HTML.Option
Beta.DOM.HTML.Output
Beta.DOM.HTML.P
Beta.DOM.HTML.Param
Beta.DOM.HTML.Picture
Beta.DOM.HTML.Pre
Beta.DOM.HTML.Progress
Beta.DOM.HTML.Q
Beta.DOM.HTML.Rp
Beta.DOM.HTML.Rt
Beta.DOM.HTML.Ruby
Beta.DOM.HTML.S
Beta.DOM.HTML.Samp
Beta.DOM.HTML.Script
Beta.DOM.HTML.Section
Beta.DOM.HTML.Select
Beta.DOM.HTML.Small
Beta.DOM.HTML.Source
Beta.DOM.HTML.Span
Beta.DOM.HTML.Strong
Beta.DOM.HTML.Style
Beta.DOM.HTML.Sub
Beta.DOM.HTML.Summary
Beta.DOM.HTML.Sup
Beta.DOM.HTML.Table
Beta.DOM.HTML.Tbody
Beta.DOM.HTML.Td
Beta.DOM.HTML.Template
Beta.DOM.HTML.Textarea
Beta.DOM.HTML.Tfoot
Beta.DOM.HTML.Th
Beta.DOM.HTML.Thead
Beta.DOM.HTML.Time
Beta.DOM.HTML.Title
Beta.DOM.HTML.Tr
Beta.DOM.HTML.Track
Beta.DOM.HTML.U
Beta.DOM.HTML.Ul
Beta.DOM.HTML.Var
Beta.DOM.HTML.Video
Beta.DOM.HTML.Wbr
Beta.DOM.Handler
Beta.DOM.Internal
Beta.DOM.Server