An awesome lightweight React UI Component library
npm install quarkify
An awesome lightweight React UI Component library
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
[![Build Status][build-shield]][build-url]
[![codecov][codecov-shield]][codecov-url]
[![contributions welcome][contributors-shield]][contributors-url]
[![MIT License][license-shield]][license-url]
* About the Project
* Built With
* Getting Started
* Installation
* Usage
* Examples
* Contributing
* License
* Acknowledgements



There are many great UI libraries for react available but almost all of them are
highly customizable and full of boilerplate code, so we decided to create our own
lightweight React Component library and you should give it a try.
Here's why:
* Your time will be spent doing actual work instead of creating simple components.
* You will not worry about consistency across your components.
* Each component is implemented with accessibility in mind. :smile:
You may also suggest changes by forking this repo and creating a pull request or opening an issue with the tag.
* React
* Create-React-App
* SASS
* Jest
* Enzyme
* Classnames
* Typescript
To get a local copy up and running follow these simple example steps.
``sh`
npm install quarkify@latest --save`
orsh`
yarn add quarkify
* To install storybook locally
1. Clone the repo
`sh`
git clone https://github.com/Trendyol/quarkify.git`
2. Install NPM packagessh`
npm install`
Or alternatively Yarnsh`
yarn install`
3. Run testssh`
npm run test
yarn run test`
4. Run storybooksh`
npm start
yarn start
To preview the live demo and see usages of the components please
refer to our [demo][storybook-url]
We have several examples on our [document][docsify-url]. Here is the first one to get you started:
`js
import Button from "quarkify/components/button"
function App() {
return (
This will render Button component with primary variant:
[![Button Component][button]](#)
As you can see, to import components into your project, you need to specify the path as
`
"quarkify/components/{component-name}"
`Furthermore, to use
Modal component:
`js
import Button from "quarkify/components/button"
import Modal from "quarkify/components/modal";let show = false;
function handleChange() {
show = !show
}
function closeModal() {
show = false
}
function App() {
return (
onClose={closeModal}
leftIcon={"back-button"}
leftIconOnClick={closeModal}
>
Some Title
Some content
);
}
`When button is toggled, it will render the modal as it is seen below:
[![Modal Component][modal]](#)
For more examples, please refer to the [documentation][docsify-url]
Contributing
Any contributions you make are greatly appreciated.
1. Fork the Project
2. Create your Feature Branch (
git checkout -b feature/AmazingFeature)
3. Commit your Changes (git commit -m 'Add some AmazingFeature')
4. Push to the Branch (git push origin feature/AmazingFeature)
5. Open a Pull RequestPlease don't forget to check our commit message styles as we want to have
consistency across our commit logs.
License
Distributed under the MIT License. See
LICENSE` for more information.
[build-shield]: https://img.shields.io/badge/build-passing-brightgreen.svg?style=flat-square
[build-url]: https://github.com/Trendyol/quarkify/pulse
[codecov-shield]: https://codecov.io/gh/Trendyol/quarkify/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/Trendyol/quarkify
[contributors-shield]: https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat
[contributors-url]: https://github.com/Trendyol/quarkify/issues
[license-shield]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
[license-url]: LICENSE
[storybook-url]: https://trendyol.github.io/quarkify
[docsify-url]: https://quarkify-d871b.firebaseapp.com/
[button]: images/button.png
[modal]: images/modal.png