# Text field

https://fieldbook.lizardi.mx/components/text-field-basic

Category: Inputs
![Still of the Text field component, a Fieldbook UI component in Inputs.](https://fieldbook.lizardi.mx/thumbs/text-field-basic.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/text-field-basic-8d6db16597.mp4 (5 s, silent)

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

## Frameworks

react, vue, svelte, astro, html

## Preview controls

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

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| placeholder | text | you@example.com | Up to 40 characters |
| accent | color | #38BDF8 | No additional limit in the metadata. |
| disabled | boolean | false | No additional limit in the metadata. |

## Usage notes

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

### 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.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "text-field-basic",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Focus ring text input](https://fieldbook.lizardi.mx/components/focus-ring-text-input)
- [Auto Grow Textarea](https://fieldbook.lizardi.mx/components/auto-grow-textarea)
- [Single value slider](https://fieldbook.lizardi.mx/components/single-value-slider)
- [Addon Input Group](https://fieldbook.lizardi.mx/components/addon-input-group)
- [Character budget counter](https://fieldbook.lizardi.mx/components/character-budget-counter)
- [Elastic tug slider](https://fieldbook.lizardi.mx/components/elastic-tug-slider)
