Polar Elements 是一组用于 Polar.sh 变现与订阅集成的组件,共 5 个,通过 Elements 注册表以 shadcn 命令安装。
用途:为需要定价卡、赞助者网格、订阅徽章、收入展示或许可证密钥界面的项目提供现成组件。
主要组件与安装命令:
- 定价卡:npx shadcn@latest add @elements/polar-pricing-card
- 赞助者网格:npx shadcn@latest add @elements/polar-sponsor-grid
- 订阅徽章:npx shadcn@latest add @elements/polar-subscription-badge
- 收入卡:npx shadcn@latest add @elements/polar-revenue-card
- 许可证密钥:npx shadcn@latest add @elements/polar-license-key
常见组合:定价页可安装 polar-pricing-card 与 polar-subscription-badge;开源赞助可安装 polar-sponsor-grid 与 polar-revenue-card;许可证管理可安装 polar-license-key。
使用方式:按上述命令从注册表添加组件;需具备 Polar.sh 账号与 API key,配置参考 https://docs.polar.sh。组件浏览文档见 https://tryelements.dev/docs/polar。
限制:资料未提供具体框架版本、样式定制、组件 API、收费与价格等信息,暂未提供。