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

seam-react

v0.13.0

Published

基于 seam-hooks 与 Motion 的 Fluid React 组件库

Readme

seam-react

基于 seam-hooks 的 React 组件库,内置可访问性与主题 token。

安装

包发布在 npm,安装不需要访问令牌:

pnpm add seam-react
# 或
npm install seam-react

使用

import {
  Button,
  Tabs,
  Dialog,
  Sidebar,
  ToastStack,
  useToast,
} from "seam-react";
import { SeamStyles } from "seam-react/styles";

export function Root() {
  return (
    <>
      <SeamStyles />
      <Button>保存</Button>
    </>
  );
}

组件包含:Button、Input、Form、Switch、Tabs、Dialog、Toast、Tooltip、Sidebar。

  • Tabs 支持方向键切换、ARIA 关联与 fluid 指示器。
  • Switch 支持点击、键盘和拖拽 spring。
  • Dialog 提供 Root / Trigger / Content 与语义化内容层,自带 Motion 进出场、焦点陷阱、Esc 关闭与滚动锁定。
  • Toast 提供 useToast 状态队列与 ToastStack 呈现层,支持六向定位、自动关闭、状态图标、操作和拖拽关闭。
  • Tooltip 提供延迟显示、键盘与触屏访问、视口翻转/避让,以及可让相邻触发器共享并连续移动表面的 Group / Item 组合。
  • Form 提供组合式字段、同步/异步规则、服务端错误和失败聚焦;安装 valibot 后可通过 seam-react/valibot 接入 schema 校验。
  • Sidebar 提供可折叠 Group、可配置分组间距,以及互斥的轨道与背景 hover 模式。

完整文档:chenhaojie9527.github.io/ui-kit

License

MIT