@beyond-ui/react
v1.4.0
Published
<h1 align="center">Beyond React Component Library</h1> <p align="center"> A React Component Library from the Beyond design system</p>
Downloads
14
Readme
✌ Usage
Create React App
To use Beyond UI Library in React, all you need to do is install the
@beyond-ui/react
package:
$ yarn add @beyond-ui/react
# or
$ npm i @beyond-ui/react
- Now you can start importing components:
import { Button } from "@beyond-ui/react";
function App() {
return (
<Button>
Hello,Welcome to Beyond Ui
<Button>
)
};
- You can also define your own Theme:
import { ThemeProvider, Button } from "@beyond-ui/react";
function App() {
return (
<ThemeProvider theme={{
color : {
myCustomColor : "#0d0d0d"
}
}}>
<Button bgcolor="myCustomColor">
This Button is using a custom theme color
</Button>
<ThemeProvider>
)
};