(label &
{:keys [label on-click width class style attr parts src debug-as]
:as args})
Returns markup for a basic label
Returns markup for a basic label
(p & children)
acts like [:p ] but uses a [:span] in place of the [:p] and adds bottom margin of 0.7ems which produces the same visual result.
Creates a paragraph of body text, expected to have a font-size of 14px or 15px, which should have limited width.
Why limited text width? See http://baymard.com/blog/line-length-readability
The actual font-size is inherited.
At 14px, 450px will yield between 69 and 73 chars. At 15px, 450px will yield about 66 to 70 chars. So we're at the upper end of the preferred 50 to 75 char range.
If the first child is a map, it is interpreted as a map of styles / attributes.
This uses [:span] because React has become more unforgiving about nesting [:div]s under [:p]s and dumps a big red warning message in DevTools.
By adding, for example, a [hyperlink] component within your [:p]
(which contains a [:div]), you can get this warning message
acts like [:p ] but uses a [:span] in place of the [:p] and adds bottom margin of 0.7ems which produces the same visual result. Creates a paragraph of body text, expected to have a font-size of 14px or 15px, which should have limited width. Why limited text width? See http://baymard.com/blog/line-length-readability The actual font-size is inherited. At 14px, 450px will yield between 69 and 73 chars. At 15px, 450px will yield about 66 to 70 chars. So we're at the upper end of the preferred 50 to 75 char range. If the first child is a map, it is interpreted as a map of styles / attributes. This uses [:span] because React has become more unforgiving about nesting [:div]s under [:p]s and dumps a big red warning message in DevTools. By adding, for example, a [hyperlink] component within your `[:p]` (which contains a [:div]), you can get this warning message
(title &
{:keys [label level underline? margin-top margin-bottom class style attr
parts src debug-as]
:or {margin-top "0.6em" margin-bottom "0.3em"}
:as args})
A title with four preset levels
A title with four preset levels
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close