# @s-ui/react-molecule-input-field

> `MoleculeInputField` is a component that wraps a composition of Label + Textarea + Validation Messages.

Latest version **4.8.0** (published 2025-02-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @s-ui/react-molecule-input-field
pnpm add @s-ui/react-molecule-input-field
yarn add @s-ui/react-molecule-input-field
bun add @s-ui/react-molecule-input-field
```

## Health

**Score 40/100 (D)** — status: stable.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 4.8.0 |
| Published | 2025-02-04 |
| First published | 2018-09-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 146 |
| Maintainers | alejandro.ferrante, ivanmlaborda, salvador.juan, andresin87.adevinta, izeller, gfabregoadv, a.ferrer, ignacio_navarro, oscar_ramirez, jordi.munoz, joanleon-adv, aitor.rodriguez, luis-garrido, jenifer.lopez, isabelgomez87, pa.chruscinski.ext, schibstedspain, alfredo.arronte, belen.santos, xavi_ballestar, ferrangbtw, jamile.radloff, davidmartin2108, sergi.quintela, estefania_garcia, carlosvillu-adevinta, miriam-gil, arnau.guell, ferran.simon, victor.perez.adevinta, mariapaula.forero.ext, oscar.gomez, david.nieto, oriol.puig, nacho_torrella, xavi.murcia, ignacio.rodriguez, francisco.ruiz.lloret, sziauberyte, alfredo.zimperz, andresadv, javiauso, alverd004, marian.lucaci, pablogs, alisa_bayanova, cristhianb, sergiocollado, pablo.rey-adevinta, beatrizip, alex.castells, david.cuadrado.ext, giovanny.sayas.ext, patricio.sartore, azahara, marc.benito, sergio.escano, cristina.rodriguez.duque, pol.valls, frandelacasa-adevinta, carolina.mallo.ext, daniel.perez.ext, hpintos_adevinta, carlos.gonzalezl, albert.peiro, oscar-raig-adevinta, thomas.page.ext, sebastian.badea.adevinta, victoria.pasichnyk.ext, sendami.luque.ext, luz_adv, alfredo.narvaez, ruben-martin, dann41, emiliovz, adria.velardos, arturo.vicente, diegomr, sergi.martinez.adevinta, guillemgc3, frontend-jobs, javiermiguel, atilioscolaroadv, crotundu.adevinta |
| Keywords | @s-ui, react, component, molecule, inputField |

## Links

- npm: https://www.npmjs.com/package/@s-ui/react-molecule-input-field
- Repository: https://github.com/SUI-Components/sui-components
- Homepage: https://sui-components.vercel.app/
- Issues: https://github.com/SUI-Components/sui-components/issues?q=is%3Aopen+label%3A%22Component%3A+inputField%22
- npm.io page: https://npm.io/package/@s-ui/react-molecule-input-field

## Dependencies (2)

- [@s-ui/react-atom-input](https://npm.io/package/@s-ui/react-atom-input.md) 5
- [@s-ui/react-molecule-field](https://npm.io/package/@s-ui/react-molecule-field.md) 1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 4.8.0 (latest) — 2025-02-04
- 4.7.0 — 2022-06-23
- 4.6.0 — 2021-12-16
- 4.5.0 — 2021-09-09
- 4.4.0 — 2021-06-04
- 4.3.0 — 2021-01-05
- 4.2.0 — 2020-11-24
- 4.1.0 — 2020-11-03
- 4.0.0 — 2020-11-03
- 3.5.0 — 2020-05-29
- 3.4.0 — 2020-03-23
- 3.3.0 — 2020-03-11
- 3.2.0 — 2020-03-02
- 3.1.0 — 2020-01-30
- 3.0.0 — 2020-01-14
- … 6 more at https://npm.io/package/@s-ui/react-molecule-input-field/versions

## README

# MoleculeInputField

`MoleculeInputField` is a component that wraps a composition of Label + Textarea + Validation Messages. 

[![documentation](https://img.shields.io/badge/read%20the%20doc-black?logo=readthedocs)](https://sui-components.vercel.app/workbench/molecule/inputField/)
[![issue](https://img.shields.io/badge/report%20a%20bug-black?logo=openbugbounty&logoColor=red)](https://github.com/SUI-Components/sui-components/issues/new?&projects=4&template=bug-report.yml&assignees=&template=report-a-bug.yml&title=🪲+&labels=bug,component,molecule,inputField)
[![npm](https://img.shields.io/npm/dt/%40s-ui/react-molecule-input-field?logo=npm&labelColor=black)](https://www.npmjs.com/package/@s-ui/react-molecule-input-field)

[![Issues open](https://img.shields.io/github/issues-search/SUI-Components/sui-components?query=is%3Aopen%20label%3Acomponent%20label%3AinputField&logo=openbugbounty&logoColor=red&label=issues%20open&color=red)](https://github.com/SUI-Components/sui-components/issues?q=is%3Aopen+label%3Acomponent+label%3AinputField)
[![NPM](https://img.shields.io/npm/l/%40s-ui%2Freact-molecule-input-field)](https://github.com/SUI-Components/sui-components/blob/main/components/molecule/inputField/LICENSE.md)

## Installation

```sh
$ npm install @s-ui/react-molecule-input-field --save
```

## Usage

After importing the component `MoleculeInputField` like this

```javascript
import MoleculeInputField from '@s-ui/react-molecule-input-field'
```

### Basic usage
    
```javascript
  <MoleculeInputField
    id="second"
    placeholder="Medium Input"
    leftAddon="http://"
    rightAddon="@schibsted.com"
    label="Description"
    value="In some place of La Mancha which name..."
  />
```

### With `successText`
    
```javascript
  <MoleculeInputField
    id="description2"
    label="Description"
    value="In some place of La Mancha which name..."
    successText="Everything ok!"
  />
```

### With `errorText`
    
```javascript
  <MoleculeInputField
    id="notes"
    label="Notes"
    errorText="All wrong!"
  />
```

### With `alertText`

```javascript
  <MoleculeInputField
    id="notes"
    label="Notes"
    alertText="All wrong!"
  />

```

### With `helpText`

```javascript
  <MoleculeInputField
    id="description-inline2"
    label="Description"
    helpText="Tu descripción en Latin"
    value="Lorem ipsum dolor sit amet"
  />
```

### Inline

```javascript
  <MoleculeInputField
    id="description"
    label="Description"
    value="In some place of La Mancha which name..."
    inline
  />
```


> **Find full description and more examples in the [demo page](https://sui-components.now.sh/workbench/molecule/inputField/demo).**

---
_Source: https://npm.io/package/@s-ui/react-molecule-input-field · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
