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

@kb-labs/studio-ui-kit

v2.94.0

Published

KB Labs Studio UI Kit — React components using Ant Design and design tokens

Downloads

22,396

Readme

@kb-labs/studio-ui-kit

Professional React UI components using Ant Design and design tokens from @kb-labs/studio-ui-core.

🎯 Key Principles

  • NO hardcoded colors - All colors from Ant Design tokens via theme.useToken()
  • NO inline styles - All spacing/typography from design tokens
  • Type-safe - Full TypeScript support
  • Composable - Build complex components from primitives

📦 Installation

pnpm add @kb-labs/studio-ui-kit

🚀 Usage

import { UIText, UIBox, UIFlex, UIMetricCard, UIBadge } from '@kb-labs/studio-ui-kit';

function MyComponent() {
  return (
    <UIBox p={4}>
      <UIText size="2xl" weight="bold">Hello World</UIText>

      <UIFlex gap={2} align="center">
        <UIBadge variant="success">Active</UIBadge>
        <UIText size="sm" color="secondary">User is online</UIText>
      </UIFlex>

      <UIMetricCard
        label="Active Users"
        value={1234}
        trend="up"
        delta={15.3}
        unit="users"
      />
    </UIBox>
  );
}

📊 Component Stats

  • Total Components: 51
  • With Tests: 4/51 (8%)

By Category:

  • Primitives: 4
  • Core: 8
  • Layout: 4
  • Form: 10
  • Navigation: 7
  • Composite: 4
  • Feedback: 6
  • Overlay: 5
  • Content: 3

📚 Component Reference

Primitives

Foundation components for layout and typography

| Component | Description | Tests | |-----------|-------------|-------| | UIBox | Box component - Layout primitive with spacing tokens | ❌ | | UIFlex | Flex component - Flexbox layout primitive | ❌ | | UIText | Text component - Typography primitive with design tokens | ✅ | | UITypography | UITypography components - Rich text display | ❌ |

Core

Essential UI components

| Component | Description | Tests | |-----------|-------------|-------| | UIAvatar | UIAvatar component - User avatar | ❌ | | UIBadge | Badge component - Status indicator with semantic colors | ❌ | | UIButton | UIButton component - Action button with semantic variants | ✅ | | UICard | UICard component - Card container with header/footer | ❌ | | UIIcon | UIIcon component - Icon wrapper with proper theming | ❌ | | UIShimmerText | UIShimmerText - Animated gradient shimmer on text | ❌ | | UITag | UITag component - Label/category tag with semantic colors | ❌ | | UITitle | UITitle component - Page/section titles with hierarchy | ❌ |

Layout

Layout and container components

| Component | Description | Tests | |-----------|-------------|-------| | UIDivider | UIDivider component - Visual separator | ❌ | | UIGrid | UIRow / UICol components - Grid layout | ❌ | | UISpace | UISpace component - Spacing container | ❌ | | UIStack | UIStack component - Vertical/horizontal spacing layout | ❌ |

Form

Form controls and inputs

| Component | Description | Tests | |-----------|-------------|-------| | UICheckbox | UICheckbox component - Checkbox input | ❌ | | UIDatePicker | UIDatePicker component - Date/time picker | ❌ | | UIForm | UIForm component - Form wrapper with validation | ❌ | | UIInput | UIInput component - Text input with variants | ✅ | | UIInputNumber | UIInputNumber component - Numeric input | ❌ | | UIRadio | UIRadio component - Radio button | ❌ | | UISelect | UISelect component - Dropdown select with icon support | ❌ | | UISlider | UISlider component - Slider input | ❌ | | UISwitch | UISwitch component - Toggle switch | ❌ | | UIUpload | UIUpload component - File upload | ❌ |

Navigation

Navigation and menu components

| Component | Description | Tests | |-----------|-------------|-------| | UIAccordion | UIAccordion component - Collapsible panels | ❌ | | UIBreadcrumb | UIBreadcrumb component - Navigation breadcrumb trail | ❌ | | UIDropdown | UIDropdown component - Dropdown menu | ❌ | | UIMenu | UIMenu component - Navigation menu | ❌ | | UISegmented | UISegmented component - Segmented control | ❌ | | UISteps | UISteps component - Step indicator | ❌ | | UITabs | UITabs component - Tabbed navigation | ❌ |

Composite

Complex composed components

| Component | Description | Tests | |-----------|-------------|-------| | UIHeader | UIHeader component - Page header with title, subtitle, and breadcrumbs | ✅ | | UIPage | UIPage component - Page container with padding and max-width | ❌ | | UIPageHeader | UIPageHeader component - Standard page header | ❌ | | UIPageSection | UIPageSection component - Section within a page | ❌ |

Feedback

Feedback and notification components

| Component | Description | Tests | |-----------|-------------|-------| | UIAlert | UIAlert component - Alert messages and notifications | ❌ | | UIEmptyState | UIEmptyState component - Empty state placeholder | ❌ | | UIErrorState | UIErrorState component - Error state display | ❌ | | UIResult | UIResult component - Result page | ❌ | | UISkeleton | UISkeleton component - Loading skeleton | ❌ | | UISpin | UISpin component - Loading spinner | ❌ |

Overlay

Modal and overlay components

| Component | Description | Tests | |-----------|-------------|-------| | UIDrawer | UIDrawer component - Side panel overlay | ❌ | | UIModal | UIModal component - Modal dialog | ❌ | | UIPopconfirm | UIPopconfirm component - Confirmation popover | ❌ | | UIPopover | UIPopover component - Popover overlay | ❌ | | UITooltip | UITooltip component - Tooltip overlay | ❌ |

Content

Content display components

| Component | Description | Tests | |-----------|-------------|-------| | UIDiffViewer | UIDiffViewer | ❌ | | UIJsonViewer | UIJsonViewer component - JSON content viewer | ❌ | | UIMarkdownViewer | UIMarkdownViewer component - Markdown content viewer | ❌ |

🎨 Design Tokens

All components use design tokens from @kb-labs/studio-ui-core:

Typography

<UIText size="xs">Extra small text</UIText>
<UIText size="sm">Small text</UIText>
<UIText size="base">Base text</UIText>
<UIText size="lg">Large text</UIText>
<UIText size="xl">Extra large text</UIText>
<UIText size="2xl">2X large text</UIText>

Colors

<UIText color="primary">Primary text</UIText>
<UIText color="secondary">Secondary text</UIText>
<UIText color="success">Success text</UIText>
<UIText color="warning">Warning text</UIText>
<UIText color="error">Error text</UIText>
<UIText color="info">Info text</UIText>

Spacing

<UIBox p={2}>Padding 0.5rem</UIBox>
<UIBox p={4}>Padding 1rem</UIBox>
<UIBox p={6}>Padding 1.5rem</UIBox>
<UIBox m={2}>Margin 0.5rem</UIBox>

🏗️ Component Hierarchy

Primitives (Tier 1)
  ├── UIText - Typography
  ├── UIBox - Spacing
  └── UIFlex - Layout

Components (Tier 2)
  ├── UIBadge - Status indicators
  └── UIMetricCard - Metric displays

📖 Examples

Metric Display

<UIMetricCard
  label="Revenue"
  value={45230}
  unit="USD"
  trend="up"
  delta={12.5}
  showDelta={true}
  size="default"
/>

Badge Variants

<UIBadge variant="success">Success</UIBadge>
<UIBadge variant="warning">Warning</UIBadge>
<UIBadge variant="error">Error</UIBadge>
<UIBadge variant="info">Info</UIBadge>
<UIBadge variant="default">Default</UIBadge>

Layout Composition

<UIBox p={4} mb={3}>
  <UIFlex direction="column" gap={2}>
    <UIText size="lg" weight="bold">Header</UIText>
    <UIText size="sm" color="secondary">Description</UIText>
  </UIFlex>
</UIBox>

🔗 Dependencies

  • react (peer) - ^18.3.1
  • react-dom (peer) - ^18.3.1
  • antd (peer) - ^5.22.5
  • @kb-labs/studio-ui-core - Design tokens

📝 License

Private - KB Labs