Liking cljdoc? Tell your friends :D

baredom.components.x-icon.model


attr-colorcljs

source

attr-labelcljs

source

attr-sizecljs

source

color-css-valuecljs

(color-css-value c)

Produce the CSS value for a normalized colour name.

Produce the CSS value for a normalized colour name.
sourceraw docstring

default-colorcljs

source

default-sizecljs

source

event-schemacljs

source

normalizecljs

(normalize {:keys [size-raw color-raw label-raw label-present?]})

Normalise raw attribute inputs into a stable view-model map.

Input keys: :size-raw string | nil :color-raw string | nil :label-raw string | nil :label-present? boolean

Output keys: :size-css string (e.g. "20px") :color-css string ("inherit" or "var(...)") :label string ("" when absent / empty) :labelled? boolean (true only when label attribute is present AND non-empty)

Normalise raw attribute inputs into a stable view-model map.

Input keys:
  :size-raw       string | nil
  :color-raw      string | nil
  :label-raw      string | nil
  :label-present? boolean

Output keys:
  :size-css  string   (e.g. "20px")
  :color-css string   ("inherit" or "var(...)")
  :label     string   ("" when absent / empty)
  :labelled? boolean  (true only when label attribute is present AND non-empty)
sourceraw docstring

observed-attributescljs

source

parse-colorcljs

(parse-color s)

Parse the color attribute. Unknown / nil fall back to "inherit".

Parse the `color` attribute. Unknown / nil fall back to "inherit".
sourceraw docstring

parse-sizecljs

(parse-size s)

Parse the size attribute. Accepts a token (sm/md/lg/xl) or a positive integer in pixels. Returns a map {:css "<n>px" :token <string|nil> :px <int>}. Unknown / invalid values fall back to the default md (20px).

Parse the `size` attribute.
Accepts a token (`sm`/`md`/`lg`/`xl`) or a positive integer in pixels.
Returns a map `{:css "<n>px" :token <string|nil> :px <int>}`.
Unknown / invalid values fall back to the default `md` (20px).
sourceraw docstring

property-apicljs

source

tag-namecljs

source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close