mt-c-components

0.1.8 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i mt-c-components

Weekly Downloads

0

Version

0.1.8

License

MIT

Unpacked Size

6.7 MB

Total Files

420

Last publish

Collaborators

  • afroz14