Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Quran Components CircleCI npm version NPM NPM

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

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

const CustomBody = () => (
  <div>
    <Button />
    <Jumbotron />
  </div>
);

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

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

const MyButton = () => (
  <div>
    <Button />
  </div>
);

ES5

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

var MyButton = React.createClass({
  render: function() {
    return (
      <div>
        <Button />
      <div>
    );
  }
});
Demo

About

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

Topics

Resources

Releases

No releases published

Packages

No packages published

Languages