0.0.5 • Published 2 years ago

@cebus/react-input v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Input

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

Use

  1. Install the @cebus/react-input component.

Using NPM

npm install @cebus/react-input

Using Yarn

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

  2. 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>
  )
}
  1. 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.