gergely-nagy / react-pricing-table Goto Github PK
View Code? Open in Web Editor NEW:euro: Fast, flexible, simple pricing tables in React.
License: MIT License
:euro: Fast, flexible, simple pricing tables in React.
License: MIT License
Would be great if you could add more features.
Also if you can add better UI and templates
Also, is there a way to contribute. If I send a pull request would you accept it?
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
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 ?
I want to remove button(signup, try for free) from the pricing table.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.