Skip to content
/ tsup-template Public template

The tsup-template is a template designed to facilitate the creation of React component library.

License

Notifications You must be signed in to change notification settings

startbase-dev/tsup-template

Repository files navigation

tsup-template

The tsup-template is a project or template designed to facilitate the creation of React components by providing certain features. Here's an explanation of its key features:

Features

  • Features of tsup-template:

Create React components with ease: This template is intended to simplify the process of building React components. It likely includes a boilerplate setup, file structure, and configuration that makes it easy to get started with creating new components without having to set up everything from scratch.

  • Css bundling ready:

It appears that the template is configured to handle CSS bundling. This is important for styling your React components. CSS bundling typically involves bundling and optimizing CSS files, making sure they are efficiently loaded in the application.

  • Linter Formatter installed and configured:

This template seems to come with a linter and code formatter already installed and set up. This is beneficial for maintaining a consistent and clean codebase. Linters help catch code issues, and formatters automatically format the code according to a predefined style guide.

  • Storybook installed and configured:

Additionally, this template includes Storybook, a powerful tool for developing and testing UI components in isolation. With Storybook set up and configured, you can create and showcase your React component stories, making it easier to test and demonstrate your components' various states and use cases.

In summary, the tsup-template is an all-in-one solution for React component development. It provides an easy and efficient way to create components, handles CSS bundling, ensures code quality with linters and formatters, and offers the benefits of Storybook for UI component development and testing. This template simplifies the development process, saving developers time and effort.

package-name

Shield.io badges here.

Table of Contents

Installation

To install, you can use npm or yarn:

$ npm install --save package-name
$ yarn add package-name

Documentation

Make sure to add css file to your app root file

import 'package-name/dist/lib/index.css';

Components

Props

Name Type Default Description

Examples

Here's an example of using the component in a React component:

import React, { useState } from 'react';

import { Component } from 'package-name';

export default function Page() {
  return <Component />;
}

Demos

For live demos of these components in action, please visit our Storybook demo pages.

About

The tsup-template is a template designed to facilitate the creation of React component library.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published