@pongo-ui/react-input
v0.2.9
Published
A set of components that enable users to input and edit given values.
Downloads
28
Readme
Input
A set of components that enable users to input and edit given values.
Use
- Install the @pongo-ui/react-input component.
Using NPM
npm install @pongo-ui/react-input
Using Yarn
yarn add @pongo-ui/react-input
Install the @pongo-ui/react-provider and our theme tokens from @pongo-ui/react-theme
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>
)
}
- 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.