1.0.0 • Published 4 years ago
react-daniel-ui v1.0.0
Install
For npm users:
$ npm install react-daniel-ui styled-componentsFor Yarn users:
$ yarn add react-daniel-ui styled-componentsLinks
Example
import React from "react";
import { Button } from "react-daniel-ui";
const App = () => (
<div>
<Button>Click Here</Button>
</div>
);
export default App;Theme Support
We have two default themes "sea" and "mountain" but you can use your custom theme through a javascript object
import React from "react";
import { ThemeProvider } from "styled-components";
import { Button } from "react-daniel-ui";
import { mountain } from "react-daniel-ui";
const App = () => (
<div>
<ThemeProvider theme={mountain}>
<Button>Click Here</Button>
</ThemeProvider>
</div>
);
export default App;Explore with storybook
You can clone the repository and use the storybook to see examples of each component, modify the repository, and bring in new ideas.
$ npm run storybookor
$ yarn storybook