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

@muja-ui/native

v0.3.1

Published

muja-ui native components — React Native / Expo, themed from the shared design tokens

Downloads

400

Readme

@muja-ui/native

React Native / Expo components for muja-ui. Same design tokens, same theme engine and the same prop vocabulary as @muja-ui/web — one design system, two renderers.

pnpm add @muja-ui/native @muja-ui/theme-sdu

Peer dependencies: react, react-native, react-native-safe-area-context, react-native-svg.

Setup

Wrap the app once. SafeAreaProvider must be outside ThemeProvider, because Screen, BottomSheet, Drawer and ToastProvider all read safe-area insets.

import { sduDarkTheme, sduLightTheme } from '@muja-ui/theme-sdu';
import { ThemeProvider, ToastProvider } from '@muja-ui/native';
import { SafeAreaProvider } from 'react-native-safe-area-context';

export default function RootLayout() {
  return (
    <SafeAreaProvider>
      <ThemeProvider theme={sduLightTheme} darkTheme={sduDarkTheme}>
        <ToastProvider>
          <Stack />
        </ToastProvider>
      </ThemeProvider>
    </SafeAreaProvider>
  );
}

colorMode defaults to 'system' and follows the OS through useColorScheme(). React Native has no synchronous storage, so persistence is the app's job — pass the stored value as colorMode and save from onColorModeChange.

How it differs from the web package

Both packages take the same props for the same concepts (variant, size, tone, loading, fullWidth, invalid, and the token style props p, px, bg, radius, shadow, w, h, …). The differences are all forced by the platform:

| | Web | Native | |---|---|---| | Styling | mj-* classes + var(--mj-*) | useTheme() resolves tokens to a StyleSheet object | | Entry points | . (RSC-safe) + ./client | one entry — there are no Server Components | | Change handlers | DOM events (onChange(event)) | value callbacks (onChange(nextValue)) | | Select | <option> children | an options array | | Anchored menus | DropdownMenu, Popover | ActionSheet — a dropdown anchored to a tap target is wrong on a phone | | Table | semantic <table> | not provided; use ListRow or a FlatList | | Tooltip | hover | long-press, and the label doubles as the accessibility hint | | Tabs | TabList / Tab / TabPanel | an items array; the screen renders the panel for the active value |

Native-only additions, for things every screen needs: Screen (safe-area page shell with pull-to-refresh), ListRow, EmptyState, FormField, HStack.

Components

PrimitivesBox, Flex, Stack, HStack, Spacer, Divider, Text, Heading, Icon

FormButton, IconButton, Input, Textarea, Label, FormField, Checkbox, Switch, RadioGroup / Radio, Select

FeedbackSpinner, Skeleton, Progress, EmptyState, ToastProvider / useToast

Layout & dataScreen, Container, Section, Card (+ CardHeader, CardTitle, CardDescription, CardContent, CardFooter), ListRow, Badge, Chip, Avatar, Tabs, Accordion / Collapse, Calendar, Carousel, Tooltip

OverlaysModal (+ ModalHeader, ModalTitle, ModalBody, ModalFooter), BottomSheet, Drawer, ActionSheet

Conventions

  • Every colour comes from a semantic token (theme.colors.*). No component contains a raw colour value, so brand themes and dark mode apply for free.
  • Sizes come from sizeMetrics and variants from variantColors (src/system/variants.ts), so a size="lg" Button, Input and Select all agree on height.
  • Interactive components carry accessibilityRole and accessibilityState; IconButton requires accessibilityLabel at the type level.

Testing

React Native can't load under vitest/jsdom (untranspiled Flow, native runtime), so test/react-native-stub.tsx renders each RN primitive as a host element and maps accessibility* props to their ARIA equivalents. Tests then query by role and label, and read resolved styles via styleOf(). The stub is test-only and never ships.

pnpm test