beui
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesebeUI
beUI
Use beUI as copy-paste source through the shadcn registry.
@beui通过 shadcn注册表,将beUI作为复制粘贴的组件来源使用。
@beuiWorkflow
工作流程
- Fetch the live registry before choosing a component:
bash
curl -fsS https://beui.dev/r/registry.json- Pick the closest install slug from .
items[].name - Inspect before installing:
bash
npx shadcn@latest view @beui/<slug>- Install with the user's package runner:
bash
npx shadcn@latest add @beui/<slug>- 在选择组件前获取实时注册表:
bash
curl -fsS https://beui.dev/r/registry.json- 从中选择最匹配的安装标识(slug)。
items[].name - 安装前先查看组件详情:
bash
npx shadcn@latest view @beui/<slug>- 使用用户的包管理器进行安装:
bash
npx shadcn@latest add @beui/<slug>or
or
pnpm dlx shadcn@latest add @beui/<slug>
pnpm dlx shadcn@latest add @beui/<slug>
or
or
bunx --bun shadcn@latest add @beui/<slug>
5. Read the files that were added, then compose with the named exports. There is no `beui` runtime package.
The live registry is the source of truth. Use the table below only to resolve common lookalikes.bunx --bun shadcn@latest add @beui/<slug>
5. 查看已添加的文件,然后通过命名导出组合使用。不存在`beui`运行时包。
实时注册表是唯一可信来源。仅在需要解析常见相似组件时使用下方表格。Picker
组件选择对照表
| User asks for | Install | Avoid |
|---|---|---|
| Toast or snackbar | | |
| Expanding notification inbox | | |
| Mobile bottom sheet, Vaul-style panel | | |
| Side panel or app drawer | | |
| App chrome sidebar | | |
| AI files, folders, bookmarks | | |
| Whole agent workspace | | hand-rolled chat shell |
| Streaming thread that follows tokens | | custom scroll math |
| Just a chat bubble | | custom bubble |
| Prompt box or composer | | textarea plus custom buttons |
| Agent reasoning, search, tool trace | | plain log list |
| Task plan | | custom checklist |
| Code surface | | pre/code from scratch |
| File diff | | custom diff renderer |
| Tool output | | raw terminal block |
| Tool permission card | | alert dialog |
| Approval or HITL question | | custom form |
| Inline citations | | plain numbered links |
| Generated image canvas | | image card from scratch |
| Liquid popover | | |
| Corner morph popover | | |
| Dropdown select | | |
| Select that grows into panel | | |
| Searchable select | | |
| Cmd+K palette | | |
| Right-click or long-press menu | | |
| Button that blooms into a menu | | |
| Press button | | custom |
| Loading/success/error button | | spinner button |
| Magnetic button | | custom pointer tracking |
| Hold to confirm | | |
| Slide to confirm | | |
| Hover CTA with expanding arrow | | |
| Spinner, dots, bars loader | | |
| Agent thinking status | | |
| Cycling reasoning phrases | | |
| Timed agent progress glyph | | |
| Shimmer headline text | | |
| Word or letter reveal | | |
| Chromatic cycling word | | |
| Slot-machine letters | | |
| Scramble resolving text | | |
| Rolling digits | | |
| Count-up on view | | |
| Tick-dot slider | | other |
| Liquid fill slider | | |
| Equalizer slider | | |
| Tilting value bubble slider | | |
| Ruler slider | | |
| iOS wheel picker | | |
| macOS dock | | |
| Icon actions with labels | | |
| Overflow action rail | | |
| Icon tabs with active label | | |
| Morphing tab content room | | |
| Pill or underline tabs | | |
| Hover gliding background | | |
| Preview ticks or rail | | |
| Dynamic Island | | |
| Swipe row actions | | |
| Pull to refresh | | custom touch math |
| Basic upload queue | | |
| Mixed file, audio, image attachments | | |
| OTP or PIN boxes | | |
| Sign-up form | | manual form assembly |
| Theme wipe | | class toggle only |
| Shader background | | custom canvas |
| Cylinder carousel | | |
| Logo or text marquee | | |
| Data table | | HTML table from scratch |
| Editable table | | |
| Async table | | |
| Tournament bracket | | |
| Radial tournament wheel | | |
| 404 page | | custom 404 |
| Project folder card | | folder card from scratch |
| Token or chain swap | | custom swap form |
| Weekly availability editor | | custom calendar grid |
| Wallet overview card | | custom wallet card |
| Prediction market ticket | | custom trade ticket |
| Feedback popup | | |
| Infinite masonry grid | | CSS columns |
| Accordion | | custom accordion |
| 3D tilt card | | custom glare math |
| Tooltip | | |
| Switch, checkbox, radio, input | | restyled native controls |
| 用户需求 | 安装 | 避免选择 |
|---|---|---|
| 提示框(Toast)或 snackbar | | |
| 可展开的通知收件箱 | | |
| 移动端底部弹窗、Vaul风格面板 | | |
| 侧边面板或应用抽屉 | | |
| 应用侧边栏框架 | | |
| AI文件、文件夹、书签 | | |
| 完整Agent工作区 | | 手动编写的聊天外壳 |
| 跟随令牌滚动的流式对话线程 | | 自定义滚动逻辑 |
| 仅聊天气泡 | | 自定义气泡 |
| 提示框或编辑器 | | 文本框加自定义按钮 |
| Agent推理、搜索、工具追踪 | | 普通日志列表 |
| 任务计划 | | 自定义清单 |
| 代码展示区域 | | 从零开始编写的pre/code标签 |
| 文件差异对比 | | 自定义差异渲染器 |
| 工具输出 | | 原始终端块 |
| 工具权限卡片 | | 警告对话框 |
| 审批或人工介入问题 | | 自定义表单 |
| 内联引用 | | 普通编号链接 |
| 生成图像画布 | | 从零开始制作的图片卡片 |
| 常规弹出层 | | |
| 角落变形弹出层 | | |
| 下拉选择器 | | |
| 可展开为面板的选择器 | | |
| 可搜索选择器 | | |
| Cmd+K命令面板 | | |
| 右键或长按菜单 | | |
| 点击后展开为菜单的按钮 | | |
| 基础按钮 | | 自定义 |
| 带加载/成功/错误状态的按钮 | | 带加载动画的按钮 |
| 磁吸按钮 | | 自定义指针追踪 |
| 按住确认按钮 | | |
| 滑动确认按钮 | | |
| 悬停时箭头展开的CTA按钮 | | |
| 加载动画( spinner、点状、条状) | | |
| Agent思考状态 | | |
| 循环显示的推理文本 | | |
| 带时间进度的Agent状态图标 | | |
| 闪光标题文本 | | |
| 逐字/逐字母显示 | | |
| 彩色循环文本 | | |
| 老虎机式字母切换 | | |
| 字符重组文本 | | |
| 滚动数字 | | |
| 可视区域内计数增长 | | |
| 带刻度点的滑块 | | 其他 |
| 液体填充滑块 | | |
| 均衡器样式滑块 | | |
| 带倾斜数值气泡的滑块 | | |
| 标尺样式滑块 | | |
| iOS滚轮选择器 | | |
| macOS停靠栏 | | |
| 带标签的图标操作栏 | | |
| 溢出操作栏 | | |
| 带激活标签的图标选项卡 | | |
| 内容区域变形的选项卡 | | |
| 胶囊或下划线样式选项卡 | | |
| 悬停时滑动背景 | | |
| 预览刻度栏 | | |
| 灵动岛 | | |
| 可滑动行操作 | | |
| 下拉刷新 | | 自定义触摸逻辑 |
| 基础上传队列 | | |
| 混合文件、音频、图片附件上传 | | |
| OTP或PIN输入框 | | |
| 注册表单 | | 手动组装表单 |
| 主题切换动画 | | 仅切换类名 |
| 着色器背景 | | 自定义画布 |
| 圆柱轮播 | | |
| Logo或文字跑马灯 | | |
| 数据表格 | | 从零开始编写的HTML表格 |
| 可编辑表格 | | |
| 异步表格 | | |
| 淘汰赛对阵图 | | |
| 放射状淘汰赛轮盘 | | |
| 404页面 | | 自定义404页面 |
| 项目文件夹卡片 | | 从零开始制作的文件夹卡片 |
| 代币或链交换 | | 自定义交换表单 |
| 每周可用时间编辑器 | | 自定义日历网格 |
| 钱包概览卡片 | | 自定义钱包卡片 |
| 预测市场工单 | | 自定义交易工单 |
| 反馈弹窗 | | |
| 无限瀑布流网格 | | CSS列布局 |
| 手风琴组件 | | 自定义手风琴 |
| 3D倾斜卡片 | | 自定义眩光逻辑 |
| 工具提示 | | |
| 开关、复选框、单选框、输入框 | | 重新样式化的原生控件 |
Composition rules
组合规则
- Prefer installed beUI source over custom one-off motion widgets.
- Import named exports from the files shadcn adds.
- Use for layout and small styling changes. Do not fork internals unless the user asks.
className - Keep helpers installed by the registry, such as ,
@/lib/ease, and hooks.@/lib/utils - If adding new motion around beUI components, use from
useReducedMotion().motion/react - Gate decorative hover effects like magnetic pull and tilt behind .
useHoverCapable() - Animate and
transform; avoid layout-property animation.opacity
- 优先使用已安装的beUI源码,而非自定义一次性动效组件。
- 从shadcn添加的文件中导入命名导出。
- 使用进行布局和小样式调整。除非用户要求,否则不要修改内部代码。
className - 保留注册表安装的辅助工具,例如、
@/lib/ease和hooks。@/lib/utils - 如果要在beUI组件周围添加新动效,请使用中的
motion/react。useReducedMotion() - 将磁吸、倾斜等装饰性悬停效果通过进行控制。
useHoverCapable() - 对和
transform进行动画处理;避免对布局属性进行动画处理。opacity
In this repo
本仓库说明
When contributing to beUI itself, follow . A new public component needs source, preview, registry entry, and a passing . Never rename existing slugs.
AGENTS.mdbun run check:registry/r/{name}.json当向beUI贡献代码时,请遵循。新的公共组件需要包含源码、预览、注册表条目,并且通过检查。请勿重命名现有的标识。
AGENTS.mdbun run check:registry/r/{name}.json