npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@uiblock/ui

v0.1.11

Published

UI Block - React component library

Downloads

17

Readme

@uiblocks/ui

A modern, theme-aware React component library built with TypeScript. Designed for speed, customization, and developer experience.

Features

  • 🎨 Theme-aware - Built-in light/dark mode support with customizable design tokens
  • 🧩 Composable - Mix and match components or extend them easily
  • 🔧 Developer Friendly - Full TypeScript support with excellent IntelliSense
  • Performance - Optimized for React and Next.js applications
  • 🎯 Accessible - Built with accessibility best practices

Installation

npm install @uiblocks/ui
# or
yarn add @uiblocks/ui
# or
pnpm add @uiblocks/ui

Setup

1. Import Styles

Import the component styles in your main CSS file or app entry point:

@import '@uiblocks/ui/styles';

2. Theme Provider

Wrap your app with the ThemeProvider for theme support:

import { ThemeProvider, Colors } from '@uiblocks/ui'

function App() {
  return <ThemeProvider colors={Colors}>{/* Your app content */}</ThemeProvider>
}

Usage

Basic Example

import { Button, Card, Flex } from '@uiblocks/ui'

function MyComponent() {
  return (
    <Card>
      <Flex direction='col' gap={4} align='center'>
        <h2>Welcome to UI Blocks</h2>
        <Button type='primary'>Get Started</Button>
      </Flex>
    </Card>
  )
}

Components

Button

import { Button } from '@uiblocks/ui'

// Basic usage
<Button>Default Button</Button>
<Button type="primary">Primary Button</Button>
<Button type="primary" loading>Loading...</Button>
<Button danger>Danger Button</Button>

Flex

import { Flex } from '@uiblocks/ui'

// Layout with flex
;<Flex direction='row' justify='between' align='center' gap={4}>
  <div>Item 1</div>
  <div>Item 2</div>
  <div>Item 3</div>
</Flex>

Card

import { Card, CardHeader, CardTitle, CardContent } from '@uiblocks/ui'
;<Card>
  <CardHeader>
    <CardTitle>Card Title</CardTitle>
  </CardHeader>
  <CardContent>Card content goes here</CardContent>
</Card>

Tabs

import { Tabs } from '@uiblocks/ui'

const items = [
  {
    key: '1',
    label: 'Tab 1',
    children: <div>Content of Tab 1</div>
  },
  {
    key: '2',
    label: 'Tab 2',
    children: <div>Content of Tab 2</div>
  }
]

<Tabs items={items} defaultActiveKey="1" />

Theming

Custom Colors

You can customize the theme by passing colors to the ThemeProvider:

import { ThemeProvider, Colors } from '@uiblocks/ui'

const customColors = {
  colorPrimary: '#1890ff',
  colorSuccess: '#52c41a',
  colorWarning: '#faad14',
  colorError: '#ff4d4f',
}

<ThemeProvider colors={{...Colors, ...customColors}}>
  <App />
</ThemeProvider>

CSS Custom Properties

The library uses CSS custom properties that you can override:

:root {
  --colorPrimary: #1890ff;
  --colorSuccess: #52c41a;
  --colorWarning: #faad14;
  --colorError: #ff4d4f;
}

TypeScript Support

All components come with full TypeScript definitions. Import types as needed:

import { ButtonProps, FlexProps } from '@uiblocks/ui'

interface MyComponentProps {
  buttonProps: ButtonProps
  flexProps: FlexProps
}

Peer Dependencies

  • React >= 18
  • React DOM >= 18
  • Tailwind CSS ^4.1.12

Contributing

We welcome contributions! Please see our Contributing Guide for details.

License

MIT © [Gulshan]

Support