In order to get specific parameters while not having to pass tailwind classes (as w-64 for width or h-64 for height), we added keyword-based parameters for easy configuration. The idea is to pass a keyword, such as :sm or :full, making it easier to just plug and play our componentes.
you can pass on your component the key roundness and a value into it, such as :full or sm
(:require [mockingbird.components.image :refer [pfp]])
($ pfp {:theme :mockingbird
:size :lg
:roundness :full}))
The available options (until now) are:
:none, :sm, :md, :lg, :xl, :full:none, :sm, :md, :full:none, :sm, :md, :lg:none, :sm, :md, :lg:none, :sm, :md, :lgCan you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |