@qimpl/components-library
v0.8.7
Published
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-airbnb-brightgreen.svg)](https://airbnb.io/javascript/) [![Version](https://img.shields.io/github/v/release/qimpl/components-library)](https://github.com/qimpl/components-library/release
Downloads
23
Readme
Qimpl Components
Install
npm install --save components-library
Components
- Anchor
- Button
- Card
- Carousel
- CookieBanner
- Form
- Input
- Map
- Menu
- MenuItem
- Pricing
- Select
- Text
- Title
- VisitPicker
Usage
JavaScript :
import React from 'react';
import { Button, Theme } from '@qimpl/components-library';
const Example = () => (
<Button handleClick={() => console.log('clicked')} color={Theme.colors.primary}>
My button
</Button>
);
export default Example;
TypeScript :
import React from 'react';
// Components props type can be imported
// import { ButtonProps } from '@qimpl/components-library';
import { Button, Theme } from '@qimpl/components-library';
const Example = (): React.ReactElement => (
<Button handleClick={() => console.log('clicked')} color={Theme.colors.primary}>
My button
</Button>
);
export default Example;