1.1.5 • Published 2 years ago

pricing-table-react v1.1.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

React Pricing Plan

An easy to use pricing table React component.

Demo

Omnimi-Pricing-Plan.png

Installing Package

Npm installation:

  npm install pricing-table-react

Yarn Installation:

  yarn add pricing-table-react

How To Use

Import Plan to your project

  import { Plan } from "pricing-table-react";

Plan takes two arguments: Plans and Currency.

Currency is type of string and Plans is array of type PlanProps.

You can import PlanProps like below:

  import { PlanProps } from "pricing-table-react";

Example

import React from "react";
import { Plan, PlanProps } from "pricing-table-react";

const plans: PlanProps[] = [
  {
    href: "/Lite",
    price: "9",
    title: "Lite Plan",
    advantages: [
      {
        text: "Clean and ease to use app",
      },
      {
        text: "Simple widget generator",
      },
    ],
    duration: "month",
    highlightText: "Popular",
    guarantee: "14 days money back guarantee",
    titleDescription: "Individual and small teams",
  },
  ...
];

function App() {
  return <Plan currency="$" Plans={plans} />;
}

export default App;

Properties

ParameterTypeDescription
CurrencystringRequired. Currency sign
PlansPlanProps[]Required. All plans your website plans
BackColorstringBackground color of header and button
ColorstringText color of header and button

PlanProps

ParameterTypeRequired
titlestringtrue
titleDescriptionstringfalse
durationstringfalse
highlightTextstringfalse
pricestringtrue
guaranteestringfalse
hrefstringtrue
advantagesPlanAdvantage[]true

PlanAdvantages

ParameterTypeRequired
textstringtrue
1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago