Liking cljdoc? Tell your friends :D

re-com.text


labelcljs

(label & {:keys [label on-click width class style attr] :as args})

Returns markup for a basic label

Returns markup for a basic label
sourceraw docstring

label-args-desccljs

source

pcljs

(p & children)

acts like [:p ]

Creates a paragraph of body text, expected to have a font-szie 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.

acts like [:p ]

Creates a paragraph of body text, expected to have a font-szie 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.
sourceraw docstring

p-spancljs

(p-span & children)

like p above but uses a [:span] in place of the [:p] and adds bottom margin of 0.7ems which produces the same visual result but might have been a breaking change for some users.

This is here 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

We did it this way to avoid potential breaking changes for p

like p above but uses a [:span] in place of the [:p] and adds bottom margin of 0.7ems which
produces the same visual result but might have been a breaking change for some users.

This is here 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

We did it this way to avoid potential breaking changes for p
sourceraw docstring

titlecljs

(title &
       {:keys [label level underline? margin-top margin-bottom class style attr]
        :or {margin-top "0.6em" margin-bottom "0.3em"}
        :as args})

A title with four preset levels

A title with four preset levels
sourceraw docstring

title-args-desccljs

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close