Skip to content
1 viewer
View
Component · Input

Input

cre8.primitive.input

Accessible text entry with validation and description wiring.

Edit live
Category
Input
Slots
5
States
4
Writer
Shared

Preview

Live renderShared SSR + WASM writers
Enter a component name or connection identifier.
<Input
  default="Table"
  description="Enter a component name or connection identifier."
  label="Query String"
  name="search_query"
  placeholder="e.g. Protocol.Ingest"
/>
Change this declaration and watch it render:open Input in the playground

Variants

States and intents
Description remains visible with an error.Choose a different value.

Props

The inputs the shared writer reads. `data-*` and `aria-*` attributes pass through and are not listed.

PropTypeRequiredDefaultAlso written
accepttextOptional——
autocapitalizetextOptional——
autocompletetextOptional——
bareboolOptional——
checkedboolOptional——
colsnumberOptional——
controlKeytextOptional——
defaultscalarOptional—defaultValue
descriptiontextOptional—helpText
disabledboolOptional——
errortextOptional—errorText
hiddenboolOptional——
idtextOptional——
invalidboolOptional——
kindtextOptionaltexttype
labeltextOptional——
maxscalarOptional——
maxlengthnumberOptional——
minscalarOptional——
minlengthnumberOptional——
nametextOptional——
onChangetextOptional——
patterntextOptional——
placeholdertextOptional——
readonlyboolOptional—readOnly
requiredboolOptional——
rowsnumberOptional——
spellcheckboolOptional——
stepscalarOptional——
valuescalarOptional——
wraptextOptional——
31 rows

Anatomy

The named parts of the rendered markup. Recipes style these hooks, and every renderer keeps them stable.

SlotDOM class
root.primitive-input
label—
control—
description—
error—
5 rows
Hydration markers
data-cre8-control

States and platforms

The states the contract publishes, the platforms it declares, and the style recipes that dress it.

States
disabledinvalidrequiredtouched
Platforms
webnativeruntime-node
Recipes
unstyledruntime-console

Renderers

Shared writer
Input renders through the one writer the server and the WASM DOM share, so both emit the same markup.

Every tag in the example above renders through a shared writer.

Declared adapters. A status is the manifest's declaration, not a measured parity result.

TargetRendererStatus
webreactexperimental
runtime-nodeview-nodeready
ssrhtml-form-controlready
terminalterminal-form-controlplanned
nativenative-adapterexperimental
5 rows

Accessibility

Labels, descriptions, and errors are programmatically connected.

  • Controls have a stable accessible name.
  • Errors use aria-invalid and alert semantics.