npm.io
0.2.9 • Published 4 years ago

@pongo-ui/react-input

Licence
MIT
Version
0.2.9
Deps
6
Size
510 kB
Vulns
0
Weekly
0
Stars
4

Input

A set of components that enable users to input and edit given values.

Use

  1. Install the @pongo-ui/react-input component.

Using NPM

npm install @pongo-ui/react-input

Using Yarn

yarn add @pongo-ui/react-input
  1. Install the @pongo-ui/react-provider and our theme tokens from @pongo-ui/react-theme

  2. Set up the provider in your app:

import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
    <Provider>
  )
}
  1. Integrate the Input component.
import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'
import { Input } from '@pongo-ui/react-input'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
      <Input />
    <Provider>
  )
}

API

To learn more about the Input API take a look at the Input Interface file.