New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@thunder-source/thunder-ui

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thunder-source/thunder-ui

Reusable React component library

latest
Source
npmnpm
Version
1.0.12
Version published
Weekly downloads
4
300%
Maintainers
1
Weekly downloads
 
Created
Source

@thunder-source/thunder-ui

A comprehensive React component library built with TypeScript, Tailwind CSS, and Radix UI primitives.

Installation

npm install @thunder-source/thunder-ui
# or
pnpm add @thunder-source/thunder-ui
# or
yarn add @thunder-source/thunder-ui

Peer Dependencies

This package requires the following peer dependencies:

npm install react react-dom
npm install react-router-dom react-redux  # Required for Header, RootLayout, and Sidebar components

Usage

Basic Setup

  • Import the styles in your main entry file:
import "@thunder-source/thunder-ui/styles";
  • Import and use components:
import { Button, Card, Input } from "@thunder-source/thunder-ui";

function App() {
  return (
    <div>
      <Button variant="default">Click me</Button>
      <Card>
        <Input placeholder="Enter text..." />
      </Card>
    </div>
  );
}

Tailwind CSS Setup

This library uses Tailwind CSS. Make sure your project has Tailwind configured. You may need to add the library to your tailwind.config.js:

module.exports = {
  content: [
    "./src/**/*.{js,ts,jsx,tsx}",
    "./node_modules/@thunder-source/thunder-ui/dist/**/*.{js,ts,jsx,tsx}",
  ],
  // ... rest of your config
};

Note: This library uses JavaScript format for Tailwind configuration (tailwind.config.js) for maximum flexibility and compatibility.

Router Setup (for Header, RootLayout, Sidebar)

If you're using components that require routing (Header, RootLayout, Sidebar), make sure to wrap your app with a router:

import { BrowserRouter } from "react-router-dom";
import { RootLayout } from "@thunder-source/thunder-ui";

function App() {
  return (
    <BrowserRouter>
      <RootLayout>
        {/* Your routes */}
      </RootLayout>
    </BrowserRouter>
  );
}

Components

UI Components

  • Button
  • Input
  • Card
  • Dialog
  • Dropdown Menu
  • Select
  • Calendar
  • Table
  • Tabs
  • Toast
  • Tooltip
  • And many more...

Custom Components

  • Header
  • Sidebar
  • Form Components
  • Data Tables
  • Filters
  • And more...

Documentation

For detailed component documentation and examples, please refer to the Storybook documentation (if available).

TypeScript Support

This package is written in TypeScript and includes type definitions. No additional types package is required.

Type Safety Features

  • Full TypeScript strict mode enabled
  • Declaration maps included for "Go to Definition" support
  • Comprehensive type definitions for all components

Bundle Size

The library is optimized for production use:

  • ESM Bundle: ~2.07 MB (minified)
  • CJS Bundle: ~2.08 MB (minified)
  • CSS Bundle: ~113 KB (processed with Tailwind)

Note: The actual bundle size in your application will be smaller due to tree-shaking. Only the components you import will be included in your final bundle.

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Have an idea? Check out our Feature Suggestions & Roadmap to see what's planned or to make a request.

Development

Local Development

# Install dependencies
pnpm install

# Start development mode
pnpm run dev

# Build the library
pnpm run build

# Run linting
pnpm run lint

# Start Storybook
pnpm run storybook

Testing

# Validate package build
pnpm run validate

# Test in consumer app
pnpm run test:consumer

# Create test package
pnpm run pack:test

For detailed testing instructions, see TESTING.md.

Pre-Release

Before publishing, review the Pre-Release Checklist to ensure:

  • Build completes successfully
  • All tests pass
  • TypeScript types work correctly
  • Components render in test app
  • Package metadata is complete

Documentation

Support

For issues and questions, please open an issue on the GitHub repository.

Built with ❤️ by Praditya Manjhi

Keywords

react

FAQs

Package last updated on 07 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts