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

@v-miniapp/ui-react

v1.0.60

Published

**@v-miniapp/ui-react** là bộ thư viện component React mạnh mẽ được thiết kế đặc biệt cho việc phát triển V-MiniApp.

Readme

@v-miniapp/ui-react

@v-miniapp/ui-react là bộ thư viện component React mạnh mẽ được thiết kế đặc biệt cho việc phát triển V-MiniApp.

📚 Tài liệu chính thức: Components | V-MiniApp

Cài đặt

npm install @v-miniapp/ui-react
# hoặc
pnpm add @v-miniapp/ui-react
# hoặc
yarn add @v-miniapp/ui-react

Import Styles

Option 1: Sử dụng CSS chuẩn

Đảm bảo bạn import CSS từ phía component để UI hoạt động tốt nhất:

import '@v-miniapp/ui-react/styles.css'

Option 2: Tích hợp với Tailwind CSS

Nếu mini app của bạn đang sử dụng Tailwind CSS, bạn có thể tích hợp dễ dàng bằng cách thêm một dòng import vào file Tailwind config:

/* tailwind.css hoặc file CSS chính của bạn */
@import '@v-miniapp/ui-react/tailwind';

Lưu ý: Khi tích hợp với Tailwind, bạn không cần import @v-miniapp/ui-react/styles.css nữa.

Ví dụ bắt đầu sử dụng

import { App, type IAppConfig } from '@v-miniapp/ui-react'

// Tạo các page components
const HomePage = () => {
  return <div>Trang chủ</div>
}

const SettingsPage = () => {
  return <div>Cài đặt</div>
}

const appConfig: IAppConfig = {
  // Animation giữa các pages: 'none', 'slide_up', 'slide_left', 'fade_in'
  animation: {
    type: 'slide_left',
  },
  // Keep-alive: giữ state của pages khi navigate
  keepAlive: {
    enable: true,
  },

  pages: [
    {
      pathname: '/home',
      Component: HomePage,
      navigationBar: {
        title: 'Trang chủ',
      },
    },
    {
      pathname: '/settings',
      Component: SettingsPage,
      navigationBar: {
        title: 'Cài đặt',
      },
    },
  ],
}

export const MiniApp = () => {
  return <App config={appConfig} />
}

⚠️ Lưu ý quan trọng

Khi sử dụng component App từ @v-miniapp/ui-react, bạn đã có sẵn NavigationBar component được quản lý bởi SDK. Nếu bạn cấu hình window trong app-config.json để hiển thị title bar/navigation bar từ native, sẽ có thể bị trùng lặp với component của ui-react.

Giải pháp: Nếu bạn sử dụng NavigationBar từ @v-miniapp/ui-react, bạn nên cấu hình trong app-config.json để ẩn native title bar:

{
  "window": {
    "defaultTitle": "",
    "transparentTitle": "always"
  }
}