Atelier UI

搜索组件…

搜索组件…

iOS Capsule Button

iOS 胶囊按钮:Filled / Tinted / Gray / Plain 四种样式和三种尺寸,可自定义主题色。

在沙盒中编辑

复制一段给 AI 编程工具的提示词,包含源码、依赖和用法

属性

IOSCapsuleButtonProps

同时支持以下类型的全部属性: React.ComponentProps<"button">

属性类型默认值说明
variant"filled" | "tinted" | "gray" | "plain""filled"—
sizekeyof typeof sizes"large"—
tintstring—Any CSS color; defaults to the system blue

安装

$ npx shadcn@latest add https://chromotion.dev/r/ios-capsule-button.json

同类组件