Note
This package is a project in the Creating NPM Package book.
An easy-to-use tweet button for saying thank you to @oluwatobiss.
This button auto-fills your tweet pop-up modal with a nicely worded thank you message.
- A button that posts a thank you message
This section shows how to install the Thank You Tweet Button 003 package.
npm install thank-you-tweet-button-003
yarn add thank-you-tweet-button-003
pnpm add thank-you-tweet-button-003
Import the library and its stylesheet, and use it as shown below:
import { tweetButton } from "thank-you-tweet-button-003";
import "thank-you-tweet-button-003/style.css";
document.YourDOMNode.appendChild(tweetButton());The components rely on predefined CSS classes for styling. Importing the stylesheet once ensures consistent application of these styles across all components.