1.2.2 • Published 6 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
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.23
6 years ago
1.1.22
6 years ago
1.1.21
6 years ago
1.1.20
6 years ago
1.1.18
6 years ago
1.1.17
6 years ago
1.1.16
6 years ago
1.1.15
6 years ago
1.1.14
6 years ago
1.1.13
6 years ago
1.1.12
6 years ago
1.1.11
6 years ago
1.1.10
6 years ago
1.1.9
6 years ago
1.1.8
6 years ago
1.1.6
6 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.11
6 years ago
1.0.10
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago