@cebus/react-label
v0.0.3
Published
A Label that provides a title to a form component.
Downloads
17
Readme
Label
The Label component provides a title to a form component.
Use
- Install the @cebus/react-label component.
Using NPM
npm install @cebus/react-label
Using Yarn
yarn add @cebus/react-label
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 Label component.
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
import { Label } from '@cebus/react-label'
const MyApp = () => {
return (
<Provider theme={webLightTheme}>
<Label htmlFor="text">This is a Label</Label>
<input id="text" />
<Provider>
)
}
API
The Label API extends off of FluentUI.