Skip to content
Menu

Inputs

Text field

Text field: A single-line text field with a soft border, an accent focus ring, a muted placeholder and a proper disabled state.

Using Text field

Text field uses the inline preview frame with a light/dark theme setting.

Customize the preview

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

ControlTypeDefaultPreview limits
placeholdertextyou@example.comUp to 40 characters
accentcolor#38BDF8No additional limit in the metadata.
disabledbooleanfalseNo additional limit in the metadata.
Which frameworks are available for Text field?

Text field is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

What does Text field depend on?

The React metadata lists these npm dependencies beyond React: clsx.

What accessibility details are visible in Text field?

The React source for Text field includes: native elements (input). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Text field handle reduced motion?

The source scan found no direct useReducedMotion() or matchMedia preference read in Text field's index.tsx. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components