GithubHelp home page GithubHelp logo

gergely-nagy / react-pricing-table Goto Github PK

View Code? Open in Web Editor NEW
24.0 3.0 12.0 2.01 MB

:euro: Fast, flexible, simple pricing tables in React.

License: MIT License

JavaScript 67.91% CSS 32.09%
react pricing-table component react-table

react-pricing-table's Issues

Support custom components for PricingSlot's price & title

I think it'd be nice to support custom components for the PricingSlot price & title (possibly elsewhere too, these seem like the most important to be customisable to me).

I started working on this, I'll publish the branch to my fork soon (I want to test it more & write an example, possibly tests too).

Would you be open to this ?

Here's how it currently looks like:

<PricingSlot
    priceText="$ 200"
    priceAccessor={customPrice}
>
const customPrice = ({ className, text }) => {
	return (
		<li className={className}>
			<span>Starting at</span>
			<span>{text}</span>
		</li>
	)
}

The className & text props are "tags" & this.props.priceText respectively. Not sure we should pass them to custom components, but then again why not ? And I've made pretty much the same thing for the title, allowing for custom title component.

Thoughts ?

Add more features, Add more UI

Would be great if you could add more features.

  • Carousel
  • Variable pricing (With a slider)

Also if you can add better UI and templates

  • With carousel
  • With animations

Also, is there a way to contribute. If I send a pull request would you accept it?

React Server Side Routing window not defined

Is there any way to easily accommodate for React-router server side rendering w/ Webpack (example setup https://alligator.io/react/react-router-ssr/)? Trying to squeeze some SEO, and despite my best efforts with some pretty gnarly hacks I still get window is not defined

Error:

... /node_modules/react-pricing-table/lib/react-pricing-table.min.js:6
ReferenceError: window is not defined

Some other peeps who seemed to have same issue on other react components but fixed it -
airbnb/lottie-web#440

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.