0.0.24 • Published 2 years ago
finno-ui v0.0.24
Run storybook
npm install
- to install all dependencies
npm run storybook
or npm run start
- to run storybook with local dev server
Install as package
First install dependencies in your project:
npm install react react-dom @material-ui/core @material-ui/icons @material-ui/lab immer lodash
Then install ui package itself:
npm install finno-ui
Usage in project
In your root level entry point e.g App.jsx
:
// first import dependencies from material-ui
import { StylesProvider, ThemeProvider, createMuiTheme } from '@material-ui/core/styles';
// then import default theme
import { defaultTheme } from '@finno-ui/ui/dist/theme';
// StylesProvider makes sure, that our custom created css
// is more specific than material-ui original ones.
<StylesProvider injectFirst>
<ThemeProvider theme={createMuiTheme(defaultTheme)}>
<App />
</ThemeProvider>
</StylesProvider>;
Inside your app on any page/container e.g Page.js
:
import { Button } from 'finno-ui';
// ...
// in your react components
// ...
<Button>Test button</Button>;
0.0.24
2 years ago
0.0.21
3 years ago
0.0.22
3 years ago
0.0.23
3 years ago
0.0.20
3 years ago
0.0.10
3 years ago
0.0.11
3 years ago
0.0.12
3 years ago
0.0.13
3 years ago
0.0.14
3 years ago
0.0.15
3 years ago
0.0.9
3 years ago
0.0.16
3 years ago
0.0.17
3 years ago
0.0.18
3 years ago
0.0.19
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.8
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.1
4 years ago