Design System

Input reference ​

Every prop, event, attribute and measurement. For the model, see Overview. For how to apply it, see Usage.

Measurements are taken at a 14px root, which is what the application pins from the interface text size setting. At the 16px root of the unauthenticated screen the same three fields measure 33.5px, 45.5px and 62px.

Props ​

PropTypeRequiredDefaultMeaning
labelstringyesnoneText of the <label> bound to the field with for. Omitting it is a type error
hideLabelbooleannofalseSwaps the label class from text-fg-default to sr-only. The element, its text and its for stay in the DOM
placeholderstring | undefinednoundefinedBound to the native placeholder. Painted placeholder:text-fg-muted by both presets
multilinebooleannofalseRenders a <textarea> instead of an <input>, adds resize-none, binds rows and drops type
rowsnumberno3Bound only when multiline is true. The one height control a textarea has
sizeCInputSizeno"small"small or large. Changes single-line padding and height. Inert on a textarea
fluidbooleannofalseAdds w-full to the wrapper, and to the field on a single-line input only
invalidbooleannofalseWrites aria-invalid, swaps the border for line-danger, drops the hover border and gates message
messagestring | undefinednoundefinedValidation caption under the field. Renders only when invalid is also true
requiredbooleannofalseNative required. Draws no asterisk and writes no aria-required
disabledbooleannofalseNative disabled. Adds the disabled fill, opacity-disabled, select-none, pointer-events-none and cursor-default
readonlybooleannofalseNative readonly, plus border-transparent caret-transparent written by the component
typeCInputTypeno"text"Bound only when multiline is false
modelValuestringno""Declared with defineModel, so v-model is the route in

Events ​

EventPayload
update:modelValuestring

No other event is declared. A native listener reaches the field as a forwarded attribute instead.

Slots ​

None. The template holds no <slot> element, the rendered field is given no children, and text written between the tags is discarded. There is no default, prefix, suffix, icon or message slot.

Sizes ​

ValuePaddingField heightBlock height
small6px vertical, 8px horizontal31px55px
large12px vertical, 14px horizontal43px67px

CInputSize is Extract<Size, "small" \| "large">, so medium from the shared union is removed and passing it fails typecheck. On a textarea the value reaches the DOM as a bare size attribute and changes no pixel, because the library's textarea declares no size prop and the preset reads it as undefined.

Severities ​

None. The component imports no Severity and declares no severity prop. The only tonal state is the boolean invalid, which paints line-danger and, with a message, fg-danger text. There is no success, warn, info or contrast appearance.

Input types ​

CInputType is "text" | "password" | "email" | "number" | "url". search, tel, date and file are not in the union. The prop is bound straight onto the library component and falls through onto the element, overriding the type="text" the library hardcodes in its own render. A type attribute written by a caller is dropped instead, because type matches no shape in the filter.

DOM ​

PositionElementClass
root<div>flex flex-col gap-1 text-body, plus w-full when fluid
1<label :for="fieldId">text-fg-default, or sr-only when hideLabel
2<input> or <textarea>The preset, plus resize-none when multiline and border-transparent caret-transparent when readonly
3<span :id="${fieldId}-message">text-caption text-fg-danger, when invalid and message are both set

The root carries no id, no role and no ARIA. The field id is the caller's id attribute when it is a string, and Vue's useId otherwise. The class attribute on the field lists each preset class twice, because the library merges two paths that resolve to the same preset.

ARIA ​

AttributeOnWritten when
forlabelalways, including when hideLabel makes the label sr-only
aria-invalidfieldinvalid is true
aria-describedbyfieldinvalid and message are both set
aria-labelnowherenever. The accessible name comes from the <label>
aria-requirednowherenever. required reaches the DOM as the native attribute only
rolenowherenever

aria-describedby is bound after the forwarded attributes, so it overwrites a caller's value when there is a message and removes the attribute when there is not.

Attributes ​

The filter is the single expression /^(data-|aria-|on[A-Z])|^(id|name|form)$/, applied by useForwardedAttrs through useControlAttrs. defineOptions sets inheritAttrs: false, so nothing from the caller reaches the root element.

ShapeResult
data-*bound to the field
aria-*bound to the field
on[A-Z] listenerbound to the field
name, formbound to the field
idconsumed, then bound to the field and to the label for
class, style, ptdropped. Nothing reaches the DOM
any other namedropped

onUpdate:modelValue matches the listener shape but never double-forwards, because Vue strips a declared emit from the attribute bag before the filter sees it. The spec pins the three named drops.

Geometry ​

PartValue
Root gap4px, gap-1
Root type14px on a 20px line box, weight 400
Label line box20px
Hidden label1px square, absolute, clipped, out of flow
Field radius6px
Field border1px, at every state including readonly
Single-line content box17px, floored to one line box by the browser
Textarea row14px, so the height is rows multiplied by 14 plus 14
Message12px on a 16px line box
Intrinsic width without fluid174px
ConfigurationFieldBlock
default31px55px
hideLabel31px31px
invalid with message31px75px
size="large"43px67px
multiline with rows="3"56px80px
multiline with rows="10"154px178px

Colour ​

StateBorderBackgroundText
resting, single-lineline-defaultsurface-pagefg-strong
resting, multilineline-strongsurface-pagefg-strong
hoverline-strongsurface-pagefg-strong
focus-visibletransparentsurface-pagefg-strong
invalidline-dangersurface-pagefg-strong
disabledline-defaultsurface-disabled at 0.6fg-strong through the opacity
readonlytransparentsurface-pagefg-strong
placeholder showingas restingsurface-pagefg-muted

Colour changes run through transition-colors duration-200. The resting difference between the two field kinds comes from the presets: the inputtext preset writes border-line-default and the textarea preset writes border-line-strong.

The preset draws no focus ring beyond focus:z-10. An application stylesheet gives a focused element a 2px line-focus outline at a 2px offset, then pulls it onto the boundary for an input and a textarea by setting the border colour to transparent and the offset to zero.

Call sites ​

Counted by parsing each tag to its closing bracket, across the application package and the workflow editor package.

PropCall sites
label, fluid41
v-model40
id32
placeholder30
multiline, rows16
hideLabel10
required, disabled6
invalid, readonly4
@blur, type2
size, message, class0

One workflow node field passes no v-model, so the model stays at the empty default. Each of the 16 multiline call sites passes rows="10".