概述
使用 shadcn/ui 构建,基于 Radix UI 提供无障碍支持。组件列表
| 组件 | 文件 | 用途 |
|---|---|---|
ConfirmButton | confirm-button.tsx | 确认按钮 |
CancelButton | cancel-button.tsx | 取消按钮 |
DongButton | dong-button.tsx | Dong 按钮 |
PoissonDialog | poisson-dialog.tsx | 弹窗 |
PoissonInput | poisson-input.tsx | 输入框 |
PoissonToast | poisson-toast.tsx | 提示消息 |
PoissonLoading | poisson-loading.tsx | 加载动画 |
DropdownMenu | dropdown-menu.tsx | 下拉菜单 |
Select | select.tsx | 选择器 |
SelectDropdown | select-dropdown.tsx | 选择下拉框 |
Switch | switch.tsx | 开关 |
Tooltip | tooltip.tsx | 工具提示 |
OptimizedImage | optimized-image.tsx | 优化图片组件 |
Empty | empty.tsx | 空状态占位 |
目录结构
components
ui
confirm-button.tsx
cancel-button.tsx
dong-button.tsx
poisson-dialog.tsx
poisson-input.tsx
poisson-toast.tsx
poisson-loading.tsx
dropdown-menu.tsx
select.tsx
select-dropdown.tsx
switch.tsx
tooltip.tsx
optimized-image.tsx
empty.tsx
seo
主题定制
使用示例
最佳实践
- 复用 shadcn/ui 组件,保持风格统一
- 遵循 Radix UI 的无障碍设计规范
- 通过 CSS 变量定制主题颜色