Skip to main content

TextField

text-field.js

Options​

optiondescription
backgroundundocumented
boldShorthand for font-weight bold. Overrides weight if both are given.
colorundocumented
exactFont size as an exact CSS length, e.g. "0.875rem".
fontundocumented
idundocumented
labelundocumented
maxWidthundocumented
nameundocumented
placeholderPlaceholder text shown while the field is empty.
radiusCorner radius in pixels. A bare number, not a CSS length.
requiredundocumented
titleundocumented
typeInput type attribute. Defaults to "text"; "search" adds the native clear button.
weightundocumented

Inherited from Animator​

Accepted by every component. Defined once in animator.js.

optiondescription
centerCentres this element's CHILDREN. true for both axes, "x" horizontal, "y" vertical. Axis-aware: in a flex column "y" is justify-content, in a row it is align-items; a grid uses justify-items/align-items. To centre the element itself inside its parent, use mar: "center".

Generated from nodality 1.4.0.