(camelize-keys style-map)
Also replaces styled components with their css classname is key position.
Also replaces styled components with their css classname is key position.
(convert-css css)
Takes a hashmap or vector of styles and converts to JS types, will pass any functions cljs data structures.
Takes a hashmap or vector of styles and converts to JS types, will pass any functions cljs data structures.
(force-children x)
Utility function that will force a lazy sequence of children (recursively) into realized vectors (React cannot deal with lazy seqs in production mode)
Utility function that will force a lazy sequence of children (recursively) into realized vectors (React cannot deal with lazy seqs in production mode)
(get-cls-name-from-meta namespace-name component-sym)
Returns string or nil for the classname
Returns string or nil for the classname
(global-style props)
Takes a cljs vector or hashmap of styles and converts to JS types before calling emotion's Global function from the @emotion/react package. Inserts styles into the DOM that target global elements and classes.
Takes a cljs vector or hashmap of styles and converts to JS types before calling emotion's Global function from the @emotion/react package. Inserts styles into the DOM that target global elements and classes. https://emotion.sh/docs/@emotion/react
(theme-provider props & children)
Takes a hashmap of a style theme and react children to render with that theme in the React Context using emotion's ThemeProvider.
Takes a hashmap of a style theme and react children to render with that theme in the React Context using emotion's ThemeProvider.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close