Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://quran.github.io/common-components/

Common components to be used across Quran.com, Quranicaudio.com and Salah.com
https://quran.github.io/common-components/

quran storybook

Last synced: about 1 month ago
JSON representation

Common components to be used across Quran.com, Quranicaudio.com and Salah.com

Awesome Lists containing this project

README

        

# [Quran Components](https://quran.github.io/common-components/#/) [![CircleCI](https://circleci.com/gh/quran/common-components.svg?style=svg)](https://circleci.com/gh/quran/common-components) [![npm version](https://badge.fury.io/js/quran-components.svg)](https://www.npmjs.com/package/quran-components) [![NPM](https://img.shields.io/npm/dm/quran-components.svg?style=flat-square)](https://www.npmjs.com/package/quran-components) [![NPM](http://i.imgur.com/Lk5HsBo.png)](https://quranslack.herokuapp.com)

> Quran Common Components are a set of React UI components. The aim is to promote a consistent and reusable component library.

## Installation

#### NPM

> `npm install --save quran-components`

#### YARN

> `yarn add quran-components`

## Usage

#### ES6

```js
import React from 'React';
import { Button, Jumbotron } from 'quran-components';

const CustomBody = () => (





);
```

Also to reduce file size, you can require individual components:

```js
import React from 'React';
import Button from 'quran-components/lib/Button';

const MyButton = () => (




);
```

#### ES5

```js
var React = require('react');
var component = require('quran-components');
var Button = component.Button;

var MyButton = React.createClass({
render: function() {
return (




);
}
});
```

##### [Demo](https://quran.github.io/common-components/)