New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

pricing-table-react

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pricing-table-react

A simple pricing plan for react

latest
npmnpm
Version
1.1.5
Version published
Maintainers
1
Created
Source

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

Keywords

pricing

FAQs

Package last updated on 02 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts