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

@xiaoye-react/ui

v1.0.0

Published

小叶的 react ui 组件库

Downloads

27

Readme

@xiaoye-react/ui

小叶的 React 组件库,对标 Mantine 设计理念,提供完整的主题系统、表单、浮层、图表等 128+ 组件。

简介

@xiaoye-react/ui 是基于 React 19 的现代化组件库,具有以下特点:

  • 主题系统:完整的 CSS 变量主题,支持明暗双模式切换,可通过 varsResolver 灵活定制
  • 组件丰富:128+ 组件覆盖表单输入、选择器、浮层、导航、数据展示、反馈等场景
  • CSS Modules:所有组件使用 CSS Modules + --ui-* CSS 变量,避免样式冲突
  • 工厂模式:统一的组件工厂 factory,支持 withPropsstaticComponentsclassesvarsResolver
  • 类型安全:TypeScript 5.5+,完整类型定义,props 继承 ElementProps 支持 HTML 原生属性
  • RTL 支持:通过 DirectionProvider 提供 RTL 文字方向支持
  • 图表集成:内置 Area/Bar/Donut/Line/Sankey 等图表组件(基于 recharts)

安装

pnpm add @xiaoye-react/ui
# 或
npm install @xiaoye-react/ui

使用

import { Button, TextInput, UIProvider } from '@xiaoye-react/ui'
import '@xiaoye-react/ui/style.css'

function App() {
    return (
        <UIProvider>
            <Button variant="filled">按钮</Button>
            <TextInput placeholder="请输入" />
        </UIProvider>
    )
}

主题定制

import { UIProvider, createTheme } from '@xiaoye-react/ui'

const customTheme = createTheme({
    primaryColor: 'blue',
    defaultRadius: 'md',
    fontFamily: 'Inter, sans-serif',
})

function App() {
    return (
        <UIProvider theme={customTheme} colorScheme="light">
            {/* 应用内容 */}
        </UIProvider>
    )
}

核心组件一览

| 类别 | 组件 | |------|------| | 表单输入 | Button、TextInput、Textarea、Checkbox、Radio、Switch、Select、Slider、RangeSlider、ColorInput、ColorPicker、FileInput、JsonInput、MaskInput、PinInput | | 选择器 | Autocomplete、Combobox、MultiSelect、TagsInput、TreeSelect、SegmentedControl、Rating | | 浮层 | Modal、Drawer、Dialog、Popover、Tooltip、HoverCard、Menu、ComboboxPopover | | 导航 | Tabs、Accordion、Breadcrumbs、Pagination、NavLink、Stepper、Menubar | | 数据展示 | Table、DataList、List、Tree、Timeline、Avatar、Badge、Chip、Card、Collapse | | 反馈 | Alert、Notification、Loader、Progress、Skeleton、LoadingOverlay | | 布局 | Box、Flex、Grid、Stack、Group、Container、SimpleGrid、AppShell | | 图表 | AreaChart、BarChart、DonutChart、LineChart、SankeyChart | | 交互 | ActionIcon、CopyButton、Chip、Burger、Affix、FloatingWindow |

技术栈

  • React 19+
  • TypeScript 5.5+
  • Vite 5(构建产物为 ES Modules + 类型声明)
  • CSS Modules(--ui-* CSS 变量)
  • Floating UI(浮动定位)
  • Embla(Carousel)

License

MIT