@indiebacklink/react
v0.0.7
Published
This is a React component for [IndieBacklink.com](https://indiebacklink.com) to help you list other indie products on your site and earn money from them.
Downloads
95
Readme
IndieBacklink React Component
This is a React component for IndieBacklink.com to help you list other indie products on your site and earn money from them.
Instructions
Install the package
npm i @indiebacklink/react
Use the component
Create a new boosting channel on IndieBacklink.com and get your
id
(tracking ID).Import the CSS in your Next.js
_app.js
or_app.tsx
file:
import "@indiebacklink/react/indiebacklink.css";
- Use the component in your app:
import { IndieBacklink } from "@indiebacklink/react";
const YourComponent = () => {
return <IndieBacklink id="your-tracking-id" />;
};
export default YourComponent;
Props
Required props:
id
: The tracking ID of your boosting channel.
Optional props:
className
: Custom CSS class for the container.noBorder
: Iftrue
, removes the border around the component.noShadow
: Iftrue
, removes the shadow effect.noTitle
: Iftrue
, hides the title.openSelf
: Iftrue
, opens links in the same tab.theme
: Color theme, eitherlight
(default) ordark
.title
: Custom title for the component (default:"Top products"
).maxProducts
: Maximum number of products to display (default:3
, max:10
).maxColumns
: Maximum number of columns to display (default:3
).direction
: Layout direction, eitherhorizontal
(default) orvertical
.debug
: Iftrue
, enables debug mode with additional console logging.
Development
Installation
You can install it with npm (don't expect much fanciness):
npm i
# or
bun i
Development
npm run dev
# or
bun run dev
Build
npm run build
# or
bun run build
Publish
- Push to
main
to trigger a release.