Liking cljdoc? Tell your friends :D

cljss.core


->styledclj

(->styled tag styles cls)

Takes var name, HTML tag name and a hash map of styles definition. Returns a var bound to the result of calling cljss.core/styled, which produces React element and injects styles.

Takes var name, HTML tag name and a hash map of styles definition.
Returns a var bound to the result of calling `cljss.core/styled`,
which produces React element and injects styles.
raw docstring

-camel-casecljs

(-camel-case k)

-camel-case-attrscljs

(-camel-case-attrs props)

-compile-class-namecljs

(-compile-class-name props)

-meta-attrscljs

(-meta-attrs vars)

-mk-var-classcljs

(-mk-var-class props vars cls static)

-styledcljs

(-styled cls static vars attrs create-element)

csscljs

(css cls static vars)

Takes class name, static styles and dynamic styles. Injects styles and returns a string of generated class names.

Takes class name, static styles and dynamic styles.
Injects styles and returns a string of generated class names.
raw docstring

css-keyframescljs

(css-keyframes cls static vars)

Takes CSS animation name, static styles and dynamic styles. Injects styles and returns generated CSS animation name.

Takes CSS animation name, static styles and dynamic styles.
Injects styles and returns generated CSS animation name.
raw docstring

defkeyframescljmacro

(defkeyframes var args keyframes)

Takes var name, a vector of arguments and a hash map of CSS keyframes definition. Returns a function that calls cljss.core/css-keyframes to inject styles at runtime

and returns generated CSS animation name that can be used in CSS animation rule.

(defkeyframes spin [start end] {:from {:transform (str "rotate(" start "deg)")} :to {:transform (str "rotate(" end "deg)")}})

(defstyled Spinner :div {:animation (str (spin 0 180) " 1s ease infinite")})

Takes var name, a vector of arguments and a hash map of CSS keyframes definition.
Returns a function that calls `cljss.core/css-keyframes` to inject styles at runtime

and returns generated CSS animation name that can be used in CSS `animation` rule.

(defkeyframes spin [start end]
  {:from {:transform (str "rotate(" start "deg)")}
   :to   {:transform (str "rotate(" end "deg)")}})

(defstyled Spinner :div
  {:animation (str (spin 0 180) " 1s ease infinite")})
raw docstring

defstylescljmacro

(defstyles var args styles)

Takes var name, a vector of arguments and a hash map of styles definition. Generates class name, static and dynamic parts of styles. Returns a function that calls cljss.core/css to inject styles at runtime and returns generated class name.

Takes var name, a vector of arguments and a hash map of styles definition.
Generates class name, static and dynamic parts of styles.
Returns a function that calls `cljss.core/css` to inject styles at runtime
and returns generated class name.
raw docstring

font-facecljmacro

(font-face descriptors)

Takes a hash of font descriptors and produces CSS string of @font-face declaration. Returns a function that injects styles at runtime.

Takes a hash of font descriptors and produces CSS string of @font-face declaration.
Returns a function that injects styles at runtime.
raw docstring

inject-globalcljmacro

(inject-global css)

Takes a hash of global styles definitions and produces CSS string. Returns a sequence of calls to inject styles at runtime.

Takes a hash of global styles definitions and produces CSS string.
Returns a sequence of calls to inject styles at runtime.
raw docstring

make-styledcljmacro

(make-styled)

remove-styles!cljs

(remove-styles!)

var->cls-namecljmacro

(var->cls-name sym)

var->cmp-namecljmacro

(var->cmp-name sym)

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

× close