Textbox

React component for an input or textarea.

GitHub icon Module source

Unpkg icon Unpkg CDN

CSS

This component module has a css export that’s a Set instance containing the URL strings of the CSS files that must be loaded for this component to display correctly (excluding theme and global CSS).

Props

The React component props are documented via TypeScript JSDoc comments in the module source.

Examples

A text input with a placeholder.

Code

A text input with a default value.

Code

A required text input.

Code

A text input with a custom validation message.

Code

A textarea.

Code

An email input.

Code

A password input.

Code

A telephone number input.

Code

A date input.

Code

A search input.

Code