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.
sourceraw docstring

-camel-casecljs

(-camel-case k)
source

-camel-case-attrscljs

(-camel-case-attrs props)
source

-compile-class-namecljs

(-compile-class-name props)
source

-meta-attrscljs

(-meta-attrs vars)
source

-mk-var-classcljs

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

-styledcljs

(-styled cls static vars attrs create-element)
source

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.
sourceraw 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.
sourceraw 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")})
sourceraw 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.
sourceraw 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.
sourceraw 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.
sourceraw docstring

make-styledcljmacro

(make-styled)
source

remove-styles!cljs

(remove-styles!)
source

var->cls-namecljmacro

(var->cls-name sym)
source

var->cmp-namecljmacro

(var->cmp-name sym)
source

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

× close