An open API service indexing awesome lists of open source software.

https://github.com/officialrajdeepsingh/tsup-tutorial

tsup tutorial for npm package
https://github.com/officialrajdeepsingh/tsup-tutorial

tsup tutorial typescript

Last synced: 7 months ago
JSON representation

tsup tutorial for npm package

Awesome Lists containing this project

README

          

## Tsup Tutorial

The TSUP Tutorial NPM package explains how to use the [TSUP library](https://tsup.egoist.dev/) to bundle typescript projects.

---
![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white)

## Importing package

```js

// import Header Footer

import { Header , Footer } from "tsup-tutorial";
const { Header , Footer } = require("tsup-tutorial");

// Button

import { Button } from "tsup-tutorial/Button";
const { Button } = require("tsup-tutorial/Button");

// Headings

import { H1, H2, H3 } from "tsup-tutorial/Headings";
const { H1, H2, H3 } = require("tsup-tutorial/Headings");

// Icons

import { IconGithub, IconTwitter, IconInstagram, IconLinkedin, IconMastodon } from "tsup-tutorial/Icons";
const { IconGithub, IconTwitter, IconInstagram, IconLinkedin, IconMastodon } = require("tsup-tutorial/Icons");

// style

import "tsup-tutorial/styles.css";
require("tsup-tutorial/styles.css");

```

[Live example](https://codesandbox.io/p/sandbox/nextjs-tsup-tutorial-996q96-996q96) How to use tsup-tutorial package in your react or nextjs project.