# design-system-plin-vite

> This repository was published along with an article on [how to create a react component library](https://dev.to/receter/how-to-create-a-react-component-library-using-vites-library-mode-4lma) with Vite's library mode.

Latest version **0.0.93** (published 2023-10-16) · 0 weekly downloads

## Install

```sh
npm install design-system-plin-vite
pnpm add design-system-plin-vite
yarn add design-system-plin-vite
bun add design-system-plin-vite
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.93 |
| Published | 2023-10-16 |
| First published | 2023-10-16 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alisauska |
| Maintainers | alisauska |

## Links

- npm: https://www.npmjs.com/package/design-system-plin-vite
- npm.io page: https://npm.io/package/design-system-plin-vite

## Recent versions

- 0.0.93 (latest) — 2023-10-16
- 0.0.92 — 2023-10-16
- 0.0.91 — 2023-10-16
- 0.0.9 — 2023-10-16
- 0.0.8 — 2023-10-16
- 0.0.7 — 2023-10-16
- 0.0.6 — 2023-10-16
- 0.0.5 — 2023-10-16
- 0.0.4 — 2023-10-16
- 0.0.3 — 2023-10-16
- 0.0.2 — 2023-10-16
- 0.0.1 — 2023-10-16
- 0.0.0 — 2023-10-16

## README

# A simple (demo) react component libarary
This repository was published along with an article on [how to create a react component library](https://dev.to/receter/how-to-create-a-react-component-library-using-vites-library-mode-4lma) with Vite's library mode.

second repo that consumes this libarary: https://github.com/receter/my-component-library-consumer

## Installation
You can install it with npm (don't expect much fanciness):
```bash
npm i @receter/my-component-library
```

## Usage
```javascript
import { Button, Label, Input } from '@receter/my-component-library';
```
See this file for an example on using this library: https://github.com/receter/my-component-library-consumer/blob/main/src/App.tsx

## React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

### Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
   parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname,
   },
```

- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list

---
_Source: https://npm.io/package/design-system-plin-vite · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
