@cebus/react-input
v0.0.5
Published
A set of components that enable users to input and edit given values.
Downloads
17
Readme
Input
A set of components that enable users to input and edit given values.
Use
- Install the @cebus/react-input component.
Using NPM
npm install @cebus/react-input
Using Yarn
yarn add @cebus/react-input
Install the @cebus/react-provider and our theme tokens from @cebus/react-theme
Set up the provider in your app:
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
const MyApp = () => {
return (
<Provider theme={webLightTheme}>
<Provider>
)
}
- Integrate the Input component.
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
import { Input } from '@cebus/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.