(compute-mode {:keys [has-slot? count text dot]})Determine badge display mode. :slot — custom slotted content (overrides everything) :count — numeric count display :text — string text display :dot — dot-only (no text) :empty — hidden / no content
Determine badge display mode. :slot — custom slotted content (overrides everything) :count — numeric count display :text — string text display :dot — dot-only (no text) :empty — hidden / no content
(display-text {:keys [count max text] :as m})Return the string to render in [part=label], or nil.
Return the string to render in [part=label], or nil.
(normalize {:keys [variant-raw size-raw pill-raw dot-raw count-raw max-raw
text-raw aria-label-raw aria-describedby-raw has-slot?]})(parse-bool-attr s)(parse-int-attr s fallback)Parse string to non-negative integer, returning fallback on failure.
Parse string to non-negative integer, returning `fallback` on failure.
(parse-size s)(parse-variant s)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 |