# @primitives/input

> `Input` is an element that provides a space where the user can enter text. Only the text properties of it can be styled.

Latest version **4.1.0** (published 2021-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @primitives/input
pnpm add @primitives/input
yarn add @primitives/input
bun add @primitives/input
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.1.0 |
| Published | 2021-05-06 |
| First published | 2019-04-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=12.13.0 |
| Dependencies | 5 |
| Unpacked size | 21 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51 |
| Maintainers | julia.spehrer, ijigg, psxcode, deepsweet, xaviervia, irminakacz, fosimus, atilaz, moria.am, gideon.gur |

## Links

- npm: https://www.npmjs.com/package/@primitives/input
- Repository: https://github.com/bubble-dev/_
- Homepage: https://github.com/bubble-dev/_#readme
- Issues: https://github.com/bubble-dev/_/issues
- npm.io page: https://npm.io/package/@primitives/input

## Dependencies (5)

- [refun](https://npm.io/package/refun.md) ^3.0.0
- [stili](https://npm.io/package/stili.md) ^3.1.0
- [colorido](https://npm.io/package/colorido.md) ^2.1.0
- [@themeables/text](https://npm.io/package/@themeables/text.md) ^4.1.0
- [@themeables/spacer](https://npm.io/package/@themeables/spacer.md) ^1.1.0

## Recent versions

- 4.1.0 (latest) — 2021-05-06
- 4.0.2 — 2021-02-01
- 4.0.1 — 2020-11-04
- 4.0.0 — 2020-10-15
- 3.1.0 — 2020-10-05
- 3.0.3 — 2020-08-31
- 3.0.2 — 2020-08-20
- 3.0.1 — 2020-08-19
- 3.0.0 — 2020-05-12
- 2.0.0 — 2020-04-27
- 1.0.0 — 2020-01-23
- 0.7.0 — 2019-12-12
- 0.6.1 — 2019-09-13
- 0.6.0 — 2019-08-29
- 0.5.2 — 2019-06-25
- … 12 more at https://npm.io/package/@primitives/input/versions

## README

`Input` is an element that provides a space where the user can enter text. Only the text properties of it can be styled.

## Editing text handler

- `onChange`:

## Focus-like handlers

- `onFocus`: triggered when the component gets the focus
- `onBlur`: triggered when the component looses the focus

These map to the same corresponding props in Web and in React Native.

## Raw type definitions

```ts
export type TInputProps = {
  id?: string,
  isDisabled?: boolean,
  color?: string,
  family?: string,
  height?: number,
  weight?: number,
  size?: number,
  lineHeight?: number,
  letterSpacing?: number,
  paddingBottom?: number,
  paddingLeft?: number,
  paddingRight?: number,
  paddingTop?: number,
  shouldStretch?: boolean,
  value: string,
  width?: number,
  onChange: (newValue: string) => void,
  onSubmit?: () => void,
  onFocus?: () => void,
  onBlur?: () => void,
}
```

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