@primitives/input
TypeScript icon, indicating that this package has built-in type declarations

4.1.0 • Public • Published

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

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,
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 4.1.0
    0
    • latest

Version History

Package Sidebar

Install

npm i @primitives/input

Weekly Downloads

0

Version

4.1.0

License

MIT

Unpacked Size

21.5 kB

Total Files

16

Last publish

Collaborators

  • julia.spehrer
  • ijigg
  • psxcode
  • deepsweet
  • xaviervia
  • irminakacz
  • fosimus
  • atilaz
  • moria.am
  • gideon.gur