Input

A native input element that automatically works with Field.

import * as React from 'react';
import { Input } from '@base-ui-components/react/input';
import styles from './index.module.css';

export default function ExampleInput() {
  return <Input placeholder="Name" className={styles.Input} />;
}

API reference

Import the component and use it as a single part:

Anatomy
import { Input } from '@base-ui-components/react/input';

<Input />
PropTypeDefault
classNamestring | (state) => stringundefined
render| React.ReactElement
| (props, state) => React.ReactElement
undefined
AttributeType
data-dirtyEmpty attribute
data-disabledEmpty attribute
data-invalidEmpty attribute
data-touchedEmpty attribute
data-validEmpty attribute