Module
Freedom.Markup
- Package
- purescript-freedom
- Repository
- purescript-freedom/purescript-freedom
Re-exports from Freedom.Markup.Handler
Re-exports from Freedom.Markup.Prop
#css Source
css :: forall state. String -> VNode state -> VNode state
Define styles with CSS string.
It generates a hash string as class name from CSS string, and the generated class name is used automatically.
justDiv :: forall state. VNode state
justDiv =
H.div # H.css styles
styles :: String
styles =
"""
.& {
width: 100px;
height: 100px;
}
.&:hover {
width: 100px;
height: 100px;
}
.&:hover .selected {
color: blue;
}
"""
&
in the CSS string is replaced with the generated class name, and output it as stylesheet.
Like this:
.dz66dqm {
width: 100px;
height: 100px;
}
.dz66dqm:hover {
width: 100px;
height: 100px;
}
.dz66dqm:hover .selected {
color: blue;
}
Re-exports from Freedom.Markup.Tag
#blockquote Source
blockquote :: forall state. VNode state
Re-exports from Freedom.UI
#renderingManually Source
renderingManually :: forall state. VNode state -> VNode state
If you want to render children manually, you should use this.
#fingerprint Source
fingerprint :: forall state. String -> VNode state -> VNode state
Fingerprint to check equality of elements.
If it is same as previous rendered element's one, renderer skips rendering.