1.0.1 • Published 11 months ago

product-hunt-upvote v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

Product Hunt Upvote Button

A React component for adding a Product Hunt upvote button to your project.

Installation

You can install this package using npm:

npm install product-hunt-upvote

Usage

Here's how you can use the ProductHuntButton component in your React application:

import React from 'react';
import { ProductHuntButton } from 'product-hunt-upvote';
function App() {
return (
<div>
<h1>My Awesome Product</h1>
<ProductHuntButton productUrl="https://www.producthunt.com/posts/your-product" />
</div>
);
}
export default App;

Props

The ProductHuntButton component accepts the following props:

PropTypeDescription
productUrlstringThe URL of your product on Product Hunt. This is required.

Styling

The button comes with default styling, but you can override it by providing your own CSS classes.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.

1.0.1

11 months ago

1.0.0

11 months ago