All Projects → gergely-nagy → React Pricing Table

gergely-nagy / React Pricing Table

Licence: mit
💶 Fast, flexible, simple pricing tables in React.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Pricing Table

React Planner
✏️ A React Component for plans design. Draw a 2D floorplan and navigate it in 3D mode.
Stars: ✭ 846 (+3928.57%)
Mutual labels:  component
Vue Picture Input
Mobile-friendly picture file input Vue.js component with image preview, drag and drop, EXIF orientation, and more
Stars: ✭ 862 (+4004.76%)
Mutual labels:  component
React Accordion With Header
React accordion component with flexbox header
Stars: ✭ 14 (-33.33%)
Mutual labels:  component
Process
The Process component executes commands in sub-processes.
Stars: ✭ 6,942 (+32957.14%)
Mutual labels:  component
Dugong
Minimal State Store Manager for React Apps using RxJS
Stars: ✭ 10 (-52.38%)
Mutual labels:  component
Awloader
AWLoader is a UI Component that allows you to integrate loader that fits your needs within your app.
Stars: ✭ 11 (-47.62%)
Mutual labels:  component
Html
HTML helper library
Stars: ✭ 8 (-61.9%)
Mutual labels:  component
Weapp Fontawesome Component
微信小程序的 fa 图标模块
Stars: ✭ 21 (+0%)
Mutual labels:  component
Mvvmhabitcomponent
👕基于MVVMHabit框架,结合阿里ARouter打造的一套Android MVVM组件化开发方案
Stars: ✭ 857 (+3980.95%)
Mutual labels:  component
Routing
The Routing component maps an HTTP request to a set of configuration variables.
Stars: ✭ 7,080 (+33614.29%)
Mutual labels:  component
Repng
React component to PNG converter
Stars: ✭ 856 (+3976.19%)
Mutual labels:  component
React Input Tags
React component for tagging inputs.
Stars: ✭ 10 (-52.38%)
Mutual labels:  component
Polyfill Xml
This polyfill is deprecated. Use the symfony/polyfill-php72 package instead.
Stars: ✭ 11 (-47.62%)
Mutual labels:  component
Css Selector
The CssSelector component converts CSS selectors to XPath expressions.
Stars: ✭ 6,928 (+32890.48%)
Mutual labels:  component
React Toggle Switch Demo
Source code for a simple demo app showing how to build a custom toggle switch for React applications.
Stars: ✭ 15 (-28.57%)
Mutual labels:  component
Ui Box
Blazing Fast React UI Primitive
Stars: ✭ 847 (+3933.33%)
Mutual labels:  component
Fish Ui
A Vue.js 2.0 UI Toolkit for Web
Stars: ✭ 861 (+4000%)
Mutual labels:  component
Dotnet Assembly Grapher
Reverse engineering and software quality assurance tool for .NET assemblies
Stars: ✭ 21 (+0%)
Mutual labels:  component
Ks Unlimited Marquee
🐞 A unidirectional scrollable React component.
Stars: ✭ 15 (-28.57%)
Mutual labels:  component
Egjs
Javascript components group that brings easiest and fastest way to build a web application in your way.
Stars: ✭ 871 (+4047.62%)
Mutual labels:  component

React Pricing Table

Fast, flexible, simple pricing tables in React.
Built with ❤︎ by Gergely Nagy and contributors.


Table of Content

Status

Pre-alpha and under heavy development, do not use!

Features

  • [x] 📱 Responsive: Made mobile responsive with Flexbox
  • [ ] ✅ Test: Adding tests.
  • [ ] Website:

Installation

The package can be installed via NPM:

npm install react-pricing-table --save

You’ll need to install React separately since those dependencies aren’t included in the package. Below is a simple example on how to use the PricingTable in a React view.

import React from 'react';
import {PricingTable, PricingSlot, PricingDetail} from 'react-pricing-table';

class Example extends React.Component {

  render() {
    return  <PricingTable  highlightColor='#f44336'> ... </PricingTable>
  }
}

Configuration

The basic use of the PricingTable can be described with:

<PricingTable  highlightColor='#1976D2'>
    <PricingSlot  onClick={this.submit} buttonText='TRY IT FREE' title='FREE' priceText='$0/month'>
        <PricingDetail> <b>15</b> projects</PricingDetail>
        <PricingDetail> <b>5 GB</b> storage</PricingDetail>
        <PricingDetail> <b>5</b> users</PricingDetail>
        <PricingDetail strikethrough> <b>Time tracking</b></PricingDetail>
    </PricingSlot>
    <PricingSlot highlighted onClick={this.submit} buttonText='SIGN UP' title='BASIC' priceText='$24/month'>
        <PricingDetail> <b>35</b> projects</PricingDetail>
        <PricingDetail> <b>15 GB</b> storage</PricingDetail>
        <PricingDetail> <b>Unlimited</b> users</PricingDetail>
        <PricingDetail> <b>Time tracking</b></PricingDetail>
    </PricingSlot>
    <PricingSlot  onClick={this.submit} buttonText='SIGN UP' title='PROFESSIONAL' priceText='$99/month'>
        <PricingDetail> <b>100</b> projects</PricingDetail>
        <PricingDetail> <b>30 GB</b> storage</PricingDetail>
        <PricingDetail> <b>Unlimited</b> users</PricingDetail>
        <PricingDetail> <b>Time tracking</b></PricingDetail>
    </PricingSlot>
    <PricingSlot  onClick={this.submit} buttonText='SIGN UP' title='ENTERPRISE' priceText='$200/month'>
        <PricingDetail> <b>Unlimited</b> projects</PricingDetail>
        <PricingDetail> <b>75 GB</b> storage</PricingDetail>
        <PricingDetail> <b>Unlimited</b> users</PricingDetail>
        <PricingDetail> <b>Time tracking</b></PricingDetail>
    </PricingSlot>
</PricingTable>

Result: react-pricing-table

Compatibility

React

We're always trying to stay compatible with the latest version of React. We can't support all older versions of React, since React is still < 1.0 and introducing breaking changes every release.

Browser Support

The react pricing table is compatible with the latest versions of Chrome, Firefox, and IE11+.

Unfortunately it is difficult to support legacy browsers while maintaining our ability to develop new features in the future. For IE9 support, it is known that the classlist polyfill is needed, but this may change or break at any point in the future.

Local Development

The master branch contains the latest version of the PricingTable component. To start your example app, you can run yarn start. This starts a simple webserver on http://localhost:8080.

You can run yarn test to execute the test suite and linters. To help you develop the component we’ve set up some tests that covers the basic functionality. Even though we’re big fans of testing, this only covers a small piece of the component. We highly recommend you add tests when you’re adding new functionality.

The examples

The examples are hosted within the docs folder and are ran in the simple add that loads the PricingTable. To extend the examples with a new example, you can simply duplicate one of the existing examples and change the unique properties of your example.

API

PricingTable props:

name type default description
highlightColor string #f44336 Color of the highlighted slot and buttons.

PricingSlot props:

name type default description
onClick function Function to be called when the button is clicked.
title string Title of this slot.
priceText string Label for the price.
buttonClass string button-submit Custom styles for the Button.
buttonText string Label for the Button.
highlighted boolean false Whether to show highlighted header.
shouldDisplayButton boolean true Whether to show button.

PricingDetail props:

name type default description
strikethrough boolean false Whether to show strikethrough text decoration.

License

Copyright (c) 2017 Gergely Nagy and individual contributors. Licensed under MIT license, see LICENSE for the full license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].