Liking cljdoc? Tell your friends :D

trident.views.re-com

cljs

Drop-in replacement for re-com.core with a few changes.

Drop-in replacement for `re-com.core` with a few changes.
raw docstring

alert-boxcljs


alert-listcljs


align-stylecljs


bordercljs


boxcljs


buttoncljs


casecljs

(case x & clauses)

Similar to clojure.core/case, but wraps the values in divs.

Values that aren't displayed will still be returned, but they'll be wrapped in a div with :display "none" for performance.

Example:

(def tab (reagent.core/ratom ::tab-1))
(case @tab
  ::tab-1 [:p "tab 1"]
  ::tab-2 [:p "tab 2"])
=> [:div
     (^{:key ::tab-1} [:div [:p "tab 1"]]
      ^{:key ::tab-2} [:div {:style {:display "none"}}
                            [:p "tab 2"]])]
Similar to `clojure.core/case`, but wraps the values in divs.

Values that aren't displayed will still be returned, but they'll be wrapped
in a div with `:display "none"` for performance.

Example:
```
(def tab (reagent.core/ratom ::tab-1))
(case @tab
  ::tab-1 [:p "tab 1"]
  ::tab-2 [:p "tab 2"])
=> [:div
     (^{:key ::tab-1} [:div [:p "tab 1"]]
      ^{:key ::tab-2} [:div {:style {:display "none"}}
                            [:p "tab 2"]])]
```
raw docstring

checkboxcljs


close-buttoncljs


datepickercljs


datepicker-dropdowncljs


flex-child-stylecljs


flex-flow-stylecljs


forclj/smacro

(for bindings body)

Like for, but avoids React's complaints about unique keys.

Like `for`, but avoids React's complaints about unique keys.
raw docstring

gapcljs

(gap & {:as props})

Like re-com.core/gap, but with a default :size of 10px.

Like `re-com.core/gap`, but with a default `:size` of `10px`.
raw docstring

growcljs

(grow)

A div with :flex-grow 1.

A div with `:flex-grow 1`.
raw docstring

h-boxcljs

See v-box

See [[v-box]]
raw docstring

h-splitcljs


horizontal-bar-tabscljs


horizontal-pill-tabscljs


horizontal-tabscljs

(horizontal-tabs & {:keys [model] :as props})

Like re-com.core/horizontal-tabs, but stores :on-change results in model.

Like `re-com.core/horizontal-tabs`, but stores `:on-change` results in `model`.
raw docstring



info-buttoncljs


input-passwordcljs


input-textcljs

(input-text & {:keys [model transform] :or {transform identity} :as props})

Like re-com.core/input-text, but stores :on-change results in model.

  • model: an atom
  • transform: a function that will wrap :on-change values before they're stored in model.
Like `re-com.core/input-text`, but stores `:on-change` results in `model`.

- `model`: an atom
- `transform`: a function that will wrap `:on-change` values before they're
  stored in `model`.
raw docstring

input-textareacljs


input-timecljs


justify-stylecljs


labelcljs


linecljs


make-tourcljs


make-tour-navcljs


md-circle-icon-buttoncljs


md-icon-buttoncljs



pcljs


p-spancljs


popover-anchor-wrappercljs


popover-bordercljs


popover-content-wrappercljs


popover-tooltipcljs


progress-barcljs


radio-buttoncljs


row-buttoncljs


scroll-stylecljs


scrollercljs


selection-listcljs


single-dropdowncljs


slidercljs


start-tourcljs


throbbercljs


titlecljs


typeaheadcljs


v-boxcljs

Like re-com.core/v-box but without map destructuring.

Example:

[v-box {:style {:width "200px"}}
  [child-component-1]
  [child-component-2]]
Like `re-com.core/v-box` but without map destructuring.

Example:
```
[v-box {:style {:width "200px"}}
  [child-component-1]
  [child-component-2]]
```
raw docstring

v-splitcljs


vertical-bar-tabscljs


vertical-pill-tabscljs

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

× close