1.20.14 • Published 4 years ago
@rsm/wl-ui-components v1.20.14
wl-ui-components
Install
$ yarn add wl-ui-components
Development with Storybook
Start storybook development server:
yarn development
Development with another project
Use yalc
for local development with another project
https://github.com/whitecolor/yalc
Install yalc
:
npm i yalc -g
(locally) publish package:
(in wl-ui-components root)
yalc publish
Link package to other project:
(in other package's root)
yalc link wl-ui-components
After working in project
(in wl-ui-components root)
yalc publish && yalc push
Usage
Wrap App in ThemeProvider
import React from 'react';
import { ThemeProvider } from 'styled-components';
import { theme } from 'wl-ui-components';
class App extends React.Component {
render() {
return (
<ThemeProvider theme={theme}>
<MyAwesomeApp />
</ThemeProvider>
);
}
}
import React from 'react';
import { Button } from 'wl-ui-components';
const MyComponent = props => (
<div>
<Button variant="primary">Click me!</Button>
</div>
);
Publish to npm
- Update Version in
package.json
- Run
npm publish
1.20.14
4 years ago
1.20.13
4 years ago
1.20.12
4 years ago
1.20.11
4 years ago
1.20.10
4 years ago
1.20.9
4 years ago
1.20.7
4 years ago
1.20.8
4 years ago
1.20.5
4 years ago
1.20.6
4 years ago
1.20.4
4 years ago
1.20.3
4 years ago
1.20.1
4 years ago
1.20.2
4 years ago
1.19.16
4 years ago
1.20.0
4 years ago
1.19.12
4 years ago
1.19.13
4 years ago
1.19.15
4 years ago
1.19.10
4 years ago
1.19.9
4 years ago
1.19.8
4 years ago
1.19.7
4 years ago
1.19.6
4 years ago
1.19.5
4 years ago
1.19.4
4 years ago
1.19.3
4 years ago
1.19.2
4 years ago
1.19.1
4 years ago
1.19.0
4 years ago