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

@productshiv/baapui

v2.0.7

Published

A truly cross-platform multi-design UI framework that works with React, Next.js, React Native, and any React-based framework.

Readme

🚀 BaapUI - Truly Cross-Platform UI Library

A truly cross-platform multi-design UI component library that works seamlessly across React, Next.js, React Native, and any React-based framework.

Version License Platform Support Design Systems

✨ What Makes BaapUI Special?

🎯 Framework Agnostic - Works with React, Next.js, React Native, Remix, Gatsby, and more
🎨 5 Design Systems - Flat, Neumorphic, Glassmorphic, Skeuomorphic, Retro
📱 Platform Detection - Automatically adapts to web, mobile, and desktop
🔧 Zero Config - No platform-specific setup required
Performance First - Tree-shakeable with minimal bundle impact
🧩 30+ Components - Complete UI component ecosystem


🏃‍♂️ Quick Start

Install

npm install @productshiv/baapui
# or
yarn add @productshiv/baapui
# or
pnpm add @productshiv/baapui

Basic Usage

import React from 'react';
import { Button, Input, Card, ThemeProvider } from '@productshiv/baapui';

function App() {
  return (
    <ThemeProvider>
      <Card>
        <Input label="Email" placeholder="Enter email" />
        <Button variant="primary">Submit</Button>
      </Card>
    </ThemeProvider>
  );
}

That's it! The same code works in React, Next.js, React Native, and more.


🌍 Platform Support

✅ React Web

import { Button, ThemeProvider } from '@productshiv/baapui';

function MyReactApp() {
  return (
    <ThemeProvider>
      <Button>Click me!</Button>
    </ThemeProvider>
  );
}

✅ Next.js (with SSR)

// pages/index.tsx
import { Button, Card, ThemeProvider } from '@productshiv/baapui';

export default function Home() {
  return (
    <ThemeProvider>
      <Card>
        <Button>Server-rendered button!</Button>
      </Card>
    </ThemeProvider>
  );
}

✅ React Native

import { Button, View, ThemeProvider } from '@productshiv/baapui';

export default function App() {
  return (
    <ThemeProvider>
      <View>
        <Button>Native button!</Button>
      </View>
    </ThemeProvider>
  );
}

✅ Expo

// Works with Expo out of the box
import { Button, ThemeProvider } from '@productshiv/baapui';

export default function App() {
  return (
    <ThemeProvider>
      <Button>Expo button!</Button>
    </ThemeProvider>
  );
}

🎨 Design Systems

BaapUI supports 5 different design systems that can be switched dynamically:

1. Flat Design (Default)

<Button design="flat">Flat Button</Button>

2. Neumorphic

<Button design="neumorphic">Soft UI Button</Button>
<Input design="neumorphic" placeholder="Soft input" />

3. Glassmorphic (Coming Soon)

<Button design="glassmorphic">Glass Button</Button>

4. Skeuomorphic (Coming Soon)

<Button design="skeuomorphic">Realistic Button</Button>

5. Retro (Coming Soon)

<Button design="retro">Vintage Button</Button>

🧩 Components

Form Controls

  • Button - Primary, secondary, outline, text variants
  • Input - Text input with validation
  • TextArea - Multi-line text input
  • Checkbox - Single/multiple selection
  • RadioButton - Single selection from group
  • ToggleSwitch - On/off toggle
  • Slider - Range selection
  • Dropdown - Select from options
  • Stepper - Increment/decrement values

Navigation

  • Breadcrumbs - Navigation hierarchy
  • Tabs - Tab navigation
  • Pagination - Page navigation
  • Drawer - Side navigation
  • Accordion - Expandable sections

Layout

  • Card - Content container
  • Grid - Layout system
  • Divider - Section separator
  • BaapSafeArea - Safe area wrapper

Feedback

  • Toast - Temporary notifications
  • Modal - Overlay dialogs
  • Tooltip - Contextual help
  • Spinner - Loading indicator
  • ProgressBar - Progress indicator
  • SkeletonLoader - Loading placeholder

Data Display

  • Table - Data tables
  • List - Item lists
  • Badge - Status indicators
  • Chip - Compact elements
  • Avatar - User representation
  • Typography - Text styling
  • Carousel - Image/content slider

🔧 API Reference

ThemeProvider

Wrap your app with ThemeProvider to enable theming:

import { ThemeProvider } from '@productshiv/baapui';

<ThemeProvider>
  <YourApp />
</ThemeProvider>;

Platform Detection

import { PlatformInfo } from '@productshiv/baapui';

console.log(PlatformInfo);
// {
//   isReactNative: false,
//   isWeb: true,
//   OS: 'web'
// }

Component Props

All components support standard props plus design system variants:

<Button
  variant="primary"
  size="medium"
  design="neumorphic"
  disabled={false}
  loading={false}
  onPress={() => console.log('Pressed!')}
>
  Click me
</Button>

🎯 Framework-Specific Setup

React

No additional setup required! Just install and use.

Next.js

Works with SSR out of the box. For better performance, add to next.config.js:

module.exports = {
  transpilePackages: ['@productshiv/baapui'],
};

React Native

For React Native projects, ensure you have these peer dependencies:

npm install react-native react-native-svg

Expo

Works directly with Expo. No additional setup needed.


🚀 Advanced Usage

Custom Themes

import { ThemeProvider, createTheme } from '@productshiv/baapui';

const customTheme = createTheme({
  colors: {
    primary: '#your-color',
    secondary: '#your-secondary',
  },
  spacing: {
    sm: 8,
    md: 16,
    lg: 24,
  },
});

<ThemeProvider theme={customTheme}>
  <YourApp />
</ThemeProvider>;

Dynamic Design Switching

import { useTheme } from '@productshiv/baapui';

function ThemeSwitcher() {
  const { setDesign } = useTheme();

  return (
    <div>
      <button onClick={() => setDesign('flat')}>Flat</button>
      <button onClick={() => setDesign('neumorphic')}>Neumorphic</button>
    </div>
  );
}

📦 Bundle Size

BaapUI is designed for optimal bundle size:

  • Core: ~15KB gzipped
  • Individual Components: ~2-5KB each
  • Tree Shakeable: Import only what you use
  • Zero Dependencies: No external runtime dependencies
// Import only what you need
import { Button, Input } from '@productshiv/baapui';

🤝 Contributing

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

Development Setup

git clone https://github.com/productshiv/baapui.git
cd baapui
npm install
npm run dev

Running Storybook

npm run storybook

📄 License

MIT © Shivam Srivastava


🔗 Links


Made with ❤️ for the React ecosystem