@cebus/react-form
v0.0.7
Published
A Form control that helps easily set up an accessible form.
Downloads
1
Readme
Button
The Button controls allow users to make an action through a press.
Use
- Install the @cebus/react-button component.
Using NPM
npm install @cebus/react-button
Using Yarn
yarn add @cebus/react-button
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 Button component.
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
import { Button } from '@cebus/react-button'
const MyApp = () => {
return (
<Provider theme={webLightTheme}>
<Button>Hello World</Button>
<Provider>
)
}
API
To learn more about the Button API take a look at the Button Interface file.