0.0.5 • Published 3 years ago
@cebus/react-input v0.0.5
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-inputUsing Yarn
yarn add @cebus/react-inputInstall 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.