Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.16 KB

File metadata and controls

49 lines (34 loc) · 1.16 KB

@nattstack/ui

A collection of reusable React components built with Base UI, TypeScript, and CSS Modules.

Warning

This project is currently a work in progress.

Links

Installation

pnpm add @nattstack/ui

Usage

import { Button } from "@nattstack/ui/react"

function App() {
  return <Button onClick={() => console.log("Clicked!")}>Click me</Button>
}

Development

Project Structure

src/
├── index.ts          # Main export file
├── button.tsx        # Button component
├── button.module.css # Button styles
└── global.d.ts       # TypeScript declarations

Build Configuration

The project uses tsup for building:

  • Output formats: ESM and CommonJS
  • TypeScript declarations: Generated automatically
  • CSS handling: CSS files are copied to the dist folder
  • Tree shaking: Enabled for optimal bundle size
  • Source maps: Generated for debugging