复制一段给 AI 编程工具的提示词,包含源码、依赖和用法
属性
ProfileCardProps
同时支持以下类型的全部属性: Omit<React.ComponentProps<"div">, "onChange">
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| name* 必填 | string | — | — |
| handle* 必填 | string | — | — |
| bio | string | — | — |
| location | string | — | — |
| verified | boolean | false | — |
| tags | string[] | [] | — |
| stats | ProfileStat[] | [] | — |
| cover | string | "linear-gradient(135deg, #6366f1, #ec4899 55%, #f59e0b)" | CSS gradient for the cover |
| defaultFollowing | boolean | false | — |
| onFollowChange | (following: boolean) => void | — | — |
安装
$ npx shadcn@latest add https://chromotion.dev/r/profile-card.json