1.2.2 • Published 5 years ago
@olierook/global-react-components v1.2.2
global-react-components
Shared component library of react components to be used across the e-commerce site
Documentation
Installation
npm
npm i -s @skechers/global-react-components
yarn
yarn add @skechers/global-react-components
Usage
Named imports
import React, { Component } from 'react';
import { Alert, Button, Carousel, RangeInput} from '@skechers/global-react-components';
class Example extends Component {
render() {
return (
<>
<Alert warning header="Warning!">Careful now</Alert>
<Button tertiary onClick="() => alert('click!')">Hi I'm a button</Button>
<Carousel>
<div>1</div>
<div>1</div>
<div>1</div>
<div>0</div>
<div>1</div>
<div>1</div>
</Carousel>
<RangeInput onChange="() => alert('nice value you got there')"/>
</>
);
}
}
Import all
import React, { Component } from 'react';
import * as Grc from '@skechers/global-react-components';
class Example extends Component {
render() {
return (
<>
<Grc.Alert warning header="Warning!">Careful now</Grc.Alert>
<Grc.Button tertiary onClick="() => alert('click!')">Hi I'm a button</Grc.Button>
<Grc.Carousel>
<div>1</div>
<div>1</div>
<div>1</div>
<div>0</div>
<div>1</div>
<div>1</div>
</Grc.Carousel>
<Grc.RangeInput onChange="() => alert('nice value you got there')"/>
</>
);
}
}
Components and Props
For all available components, go here
Storybook
For a storybook with docs and previews download this
1.2.2
5 years ago
1.2.1
5 years ago
1.2.0
5 years ago
1.1.23
5 years ago
1.1.22
5 years ago
1.1.21
5 years ago
1.1.20
5 years ago
1.1.18
5 years ago
1.1.17
5 years ago
1.1.16
5 years ago
1.1.15
5 years ago
1.1.14
5 years ago
1.1.13
5 years ago
1.1.12
5 years ago
1.1.11
5 years ago
1.1.10
5 years ago
1.1.9
5 years ago
1.1.8
5 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago