开发者工具DEVELOPER TOOLS· CLI
redpangilinan/credenza
一个让弹窗在桌面和手机自动切换样式的 React 组件。A single shadcn/ui component that adapts to screen size, showing a dialog on desktop and a drawer on mobile.
根据公开文档整理,未运行实测;费用以项目官网为准。Based on public documentation, without runtime testing. Check the project site for pricing.
能力CAPABILITIES
一套代码做出手机抽屉和桌面弹窗
一条命令添加组件到你的React项目
弹出时让页面背景自动缩放
Automatically choose dialog or drawer per screen width.
Use one component for both mobile and desktop interactions.
Share state and callbacks between responsive variants.
Style with standard shadcn/ui classes.
Enable background scaling on mobile drawers.
上手GET STARTED
pnpm dlx shadcn@latest add https://credenza.rdev.pro/r/credenza.json选择与你的环境对应的方式。命令来自项目文档,未运行实测。Choose the option for your environment. Commands come from project documentation and have not been run-tested.
使用限制LIMITATIONS
以下要求与风险来自文档静态检查,未执行项目代码;扫描没有命中,不代表使用安全。Risk here is evidence, not an alarm. These findings come from static scanning of the docs; we never execute a project’s code.
限制LIMITS
未知Unknown
静态扫描STATIC SCAN
在 README、SKILL.md 和依赖清单中没有匹配到已知风险模式。No known risk patterns matched in the README, SKILL.md or dependency list.
静态扫描未发现明显风险,但不代表安全A static scan of the documentation found no known risk patterns, but this does not guarantee the code is safe. Review the component and its dependencies before using in production.
项目动态PROJECT ACTIVITY
首次发现FIRST SEEN
03 OCT 202603 OCT 2026
增长GROWTH
-0.4%-0.4%
897 → 893 stars · 49 个快照897 → 893 stars · 49 snapshots
状态STATUS
长期未更新Not updated
在手机和桌面之间自动切换抽屉和对话框,省去自己写响应式逻辑的功夫。Actively maintained with recent commits.
依赖:Dependencies:@radix-ui/react-dialog, @radix-ui/react-dropdown-menu, @radix-ui/react-slot, @radix-ui/react-tabs, @t3-oss/env-nextjs, class-variance-authority, clsx, lucide-react, next, next-themes, react, react-dom
{
"agents": [],
"apiKey": null,
"docker": null,
"taxonomy": {
"scores": {
"design": 0,
"ai-tools": 0,
"dev-tools": 1,
"indie-web": 0,
"skill-agent": 0,
"productivity": 0
},
"primary": "dev-tools",
"secondary": "cli"
},
"localRuntime": null,
"skillMdTotal": 0,
"skillMdErrors": [],
"treeTruncated": false,
"categoryScores": {
"data": 0,
"agent": 0,
"media": 0,
"design": 12,
"browser": 0,
"devtool": 0,
"security": 0,
"marketing": 0,
"productivity": 0
},
"classification": [],
"scannedSources": [
"readme"
],
"skillMdFetched": 0
}