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

dazo-ui

v1.0.2

Published

Cross-platform UI component library for React Native and React web.

Readme

Dazo UI

Cross-platform UI component library for React Native and React web.

Dazo UI provides reusable, theme-aware primitives and form controls that let teams ship consistent interfaces across mobile and web from a single component API.

Why Dazo UI

  • Cross-platform by design: same component API for React Native and web
  • Reusable primitives: build layouts and flows quickly with composable building blocks
  • Theme-aware: support light, dark, and custom theme overrides via ThemeProvider
  • Practical defaults: predictable styling tokens for spacing, typography, and colors

Included Components

  • Button
  • Checkbox
  • Container
  • FileInput
  • Icon
  • Input
  • Radio
  • Select
  • Table
  • Text

Installation

Install the package and required peer dependencies.

React Native (Expo)

pnpm add dazo-ui react-native-svg lucide-react-native

If your app uses FileInput with native document selection:

pnpm add expo-document-picker

React Web (Vite/Next)

pnpm add dazo-ui react-native-web react-native-svg lucide-react

For Next.js, add React Native aliasing in next.config.ts:

import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  transpilePackages: ["dazo-ui"],
  webpack: (config) => {
    config.resolve.alias = {
      ...(config.resolve.alias || {}),
      "react-native$": "react-native-web",
    };
    config.resolve.extensions = [
      ".web.js",
      ".web.jsx",
      ".web.ts",
      ".web.tsx",
      ...config.resolve.extensions,
    ];
    return config;
  },
  turbopack: {
    resolveAlias: {
      "react-native": "react-native-web",
    },
    resolveExtensions: [
      ".web.js",
      ".web.jsx",
      ".web.ts",
      ".web.tsx",
      ".mjs",
      ".ts",
      ".tsx",
      ".js",
      ".jsx",
      ".json"
    ]
  },
};

export default nextConfig;

Quick Start

1) Wrap your app with ThemeProvider

import { ThemeProvider } from "dazo-ui";

export function AppProviders({ children }: { children: React.ReactNode }) {
  return (
    <ThemeProvider colorScheme="system">
      {children}
    </ThemeProvider>
  );
}

2) Use components

import { Button, Container, Text } from "dazo-ui";

export function ExampleCard() {
  return (
    <Container padding={16} borderWidth={1} borderColor="border" borderRadius={16} gap={10}>
      <Text variant="subtitle">Welcome</Text>
      <Text color="textSecondary">Build once and ship on native and web.</Text>
      <Button label="Get Started" />
    </Container>
  );
}

ThemeProvider API

| Prop | Type | Default | Description | |---|---|---|---| | children | React.ReactNode | required | App subtree that receives theme context | | theme | DeepPartial | undefined | Optional theme overrides (colors, spacing, fontFamily, etc.) | | colorScheme | "light" | "dark" | "system" | "system" | Chooses active mode or follows device preference |

Monorepo Development

This repository is a pnpm workspace managed with Turbo.

Workspace layout

  • src: publishable package (dazo-ui)
  • apps/mobile: Expo playground
  • apps/web: Vite playground
  • apps/storybook: Storybook docs and visual testing

Root commands

pnpm install
pnpm dev
pnpm build
pnpm lint
pnpm typecheck

Package build (library only)

pnpm --filter dazo-ui build

Run individual apps

pnpm --filter mobile dev
pnpm --filter web dev
pnpm --filter storybook storybook

Peer Dependencies

The package expects these peer dependencies in consumer apps:

  • react >= 19.2.4
  • react-native >= 0.81.5
  • react-native-web >= 0.19.0
  • react-native-svg ^15.15.4
  • lucide-react-native >= 0.300.0
  • lucide-react >= 0.300.0
  • expo-document-picker ^14.0.8 (optional)

Notes

  • For FileInput on web-only projects, expo-document-picker is optional.
  • For best consistency, wrap the full application tree once with ThemeProvider.