Files
React95/docs/usage.mdx
Luiz Baldi a1b7662fae Improve docs structure
* Move each mdx file to respective component folder (colocation ftw)
* Fix some style prop-types in order to fix docz build
* Move docz to the root folder instead of having a separated project folder
2020-04-30 00:37:30 +02:00

36 lines
740 B
Plaintext

---
name: Usage
menu: Getting Started
route: /usage
---
## Usage
Apply style reset, wrap your app content with ThemeProvider with theme of your choice... and you are ready to go! 🚀
```jsx
import React from 'react';
import { createGlobalStyle, ThemeProvider } from 'styled-components';
import { reset, themes, List, ListItem, Divider } from 'react95';
const ResetStyles = createGlobalStyle`
${reset}
`;
const App = () => (
<div>
<ResetStyles />
<ThemeProvider theme={themes.default}>
<List>
<ListItem>🎤 Sing</ListItem>
<ListItem>💃🏻 Dance</ListItem>
<Divider />
<ListItem disabled>😴 Sleep</ListItem>
</List>
</ThemeProvider>
</div>
);
export default App;
```