Also named "props" in the source code, the Vcup properties are always specified using Clojure keywords.
When the keyword's namespace is "a"
(e.g. :a/for
),
the keyword refers to an HTML attribute.
When the keyword's namespace is "p"
(e.g. :p/htmlFor
),
the keyword refers to a DOM element's property.
When the keyword's namespace is "on"
(e.g. :on/click
),
the keyword refers to an event,
and the value in an event handler function.
When the keyword has no namespace, its meaning depends on its name:
:style
, :class
, :ref
, or"data-"
then it represents
a custom data attribute
(e.g. :data-testid
), or else:htmlFor
, which is equivalent to :p/htmlFor
).Vrac doesn't modify the letter case, the user is directly speaking the browser's language.
In practice, it means that:
:a/readonly
:a/tabindex
:a/accept-charset
:p/readOnly
or :readOnly
:p/tabIndex
or :tabIndex
:p/autocorrect
or :autocorrect
:on/dblclick
:on/keydown
:on/fullscreenchange
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close