# InputText An unstyled text input component with data attributes and native input semantics. ## Features - Single component rendering a native `` with `type="text"` default - Native `` semantics with full HTML attribute support ## Usage ```tsx import { InputText } from 'primereact/inputtext'; ``` ```tsx ``` ## Behavior ### Polymorphic Rendering Use `as` to change the rendered HTML element or use a custom React component. ```tsx ``` ### Render Function Children `InputText` accepts a render function as children, providing access to the component instance. ```tsx {(instance) => Custom render} ``` ## Pass Through ## API ### InputText | Attribute | Value | | ------------ | ------------- | | `data-scope` | `"inputtext"` | | `data-part` | `"root"` | | Label | Type | Description | |:------|:------|:------| | root | InputTextPassThroughType> | Used to pass attributes to the root's DOM element. | ## Accessibility ### Screen Reader `InputText` renders a native `input` element. Provide an accessible name with a visible label, `aria-label`, or `aria-labelledby`. ### Keyboard Support `InputText` uses native text input keyboard behavior.