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

solid-mobile

v0.2.2

Published

50+ mobile UI components for Solid.js — theme system, i18n, dark mode, tree-shakable, TypeScript.

Downloads

1,991

Readme


Installation

npm install solid-mobile   # or pnpm / yarn

Quick Start

import { render } from 'solid-js/web';
import { ProviderConfig, Button, Toast } from 'solid-mobile';
import 'solid-mobile/styles.css';

function App() {
  return (
    <ProviderConfig>
      <Button type="primary" onClick={() => Toast.success('Hello!')}>
        Click Me
      </Button>
    </ProviderConfig>
  );
}

render(() => <App />, document.getElementById('root')!);

Components

| Category | Components | |---|---| | Basic | Button Icon Center Divider Card Layout SafeArea ScrollBar | | Display | Avatar Badge Tag Image Empty Lazyload List SwipeCell Swiper Ellipsis Tooltip FloatingBall BackTop Marquee PullRefresh | | Navigation | Tabs TabBar NavBar Cell | | Picker | Picker Calendar Cascader DatePicker CityPicker TimePicker Select | | Feedback | Toast Notify Dialog Overlay ActionSheet Loading | | Form | Form Input Textarea Radio Checkbox Switch Rate Stepper Slider Upload |

Full API reference, interactive demos, and a phone simulator are available on the documentation site →.

Stability

From v0.2.1 through 1.0.0, the library will not undergo large-scale feature expansion. Our focus is on thorough testing and more approachable documentation.

Props and APIs are additive-only going forward — they may grow, but existing APIs will not be removed or broken (except to fix genuine design bugs). What works now will keep working in every subsequent release.

Why Solid Mobile?

| | | |---|---| | 📱 Mobile-first | Every component is designed for touch — tap-friendly sizes, safe area support, slide gestures | | 🎨 Theme System | CSS variables + ProviderConfig. Light/dark mode, custom brand colors, auto-derived hover/active states | | 🌍 i18n Built-in | zh-CN & en-US out of the box. Extensible via localeMessages | | 📦 Tree-shakable | import { Button } from 'solid-mobile' — only what you use lands in your bundle | | ⌨️ Fully Typed | Every prop, callback, and config option has TypeScript definitions | | ⚡ Zero VDOM | Built on Solid.js — components compile to real DOM, no diff overhead |

Usage Examples

Theme & Dark Mode

import { ProviderConfig } from 'solid-mobile';

const theme = { colors: { light: { primary: '#6366f1' } } };

<ProviderConfig config={theme}>
  <App />
</ProviderConfig>

// Dark mode: toggle 'dark' class on <html>
document.documentElement.classList.toggle('dark');

i18n

import { setGlobalLocale } from 'solid-mobile';

setGlobalLocale('en-US'); // 'zh-CN' | 'en-US' built-in

// Custom locale
<ProviderConfig config={{ locale: 'ja-JP' }} localeMessages={{
  'ja-JP': { component: { picker: { cancel: 'キャンセル', confirm: '確認' } } }
}}>
  <App />
</ProviderConfig>

Event Bus

import { setEventBusHandler } from 'solid-mobile';

// Intercept component events for analytics / logging
setEventBusHandler(({ component, type, payload }) => {
  console.log(`[${component}] ${type}`, payload);
});

Development

git clone https://github.com/LXG19961206/SolidMobile.git
cd SolidMobile && npm install

npm run dev:docs    # Docs site at localhost:3000
npm run build       # Library → dist/
npm test            # 480+ tests

License

MIT © LXG19961206