Atelier UI

搜索组件…

搜索组件…

iOS Kit

iOS 风格界面套件:设备外框、大标题导航栏、标签栏、分组列表、开关、分段控件、底部弹层和应用图标,支持浅色 / 深色。

在沙盒中编辑

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

属性

IOSDeviceProps

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

属性类型默认值说明
lightboolean—White status bar text, for photo and dark wallpaper screens
hideHomeIndicatorboolean—Hide the home indicator pill

IOSPageProps

属性类型默认值说明
title* 必填string——
largebooleantrueShow the big collapsing title under the navigation bar
leftReact.ReactNode——
rightReact.ReactNode——
tabbedboolean—Leave room for an IOSTabBar at the bottom
classNamestring—Background of the page, defaults to the grouped background
childrenReact.ReactNode——

IOSTabBarProps

属性类型默认值说明
items* 必填IOSTabItem[]——
value* 必填string——
onValueChange* 必填(id: string) => void——
darkboolean—Draw over a dark photographic screen
classNamestring——

IOSGroupProps

属性类型默认值说明
headerReact.ReactNode——
footerReact.ReactNode——
classNamestring——
childrenReact.ReactNode——

IOSRowProps

属性类型默认值说明
title* 必填React.ReactNode——
subtitleReact.ReactNode——
detailReact.ReactNode—Value shown on the right in secondary color
iconReact.ReactNode—An icon element, drawn white on a rounded square of `iconClassName`
iconClassNamestring"bg-(color:--ios-blue)"—
chevronboolean—Show the disclosure chevron
rightReact.ReactNode—Replaces the detail and chevron, for example an IOSSwitch
leadingReact.ReactNode—Leading content that replaces the icon square, for example an avatar
destructiveboolean——
onClick() => void——
classNamestring——

IOSSwitchProps

属性类型默认值说明
checked* 必填boolean——
onCheckedChange* 必填(checked: boolean) => void——
labelstring——
tintstring——

IOSSegmentedProps

属性类型默认值说明
options* 必填string[]——
value* 必填number——
onValueChange* 必填(index: number) => void——
classNamestring——

IOSButtonProps

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

属性类型默认值说明
variant"filled" | "tinted" | "plain"——
tintstring—Any CSS color, defaults to the system blue

IOSAppIconProps

属性类型默认值说明
iconReact.ReactNode——
classNamestring—Tailwind background classes, for example a gradient
sizenumber60—
labelstring——
showLabelboolean—Show the label under the icon, as on the home screen
labelClassNamestring——
onClick() => void——

IOSSheetProps

属性类型默认值说明
open* 必填boolean——
onClose* 必填() => void——
titlestring——
leftReact.ReactNode——
rightReact.ReactNode——
heightstring"80%"Height as a CSS length, defaults to a tall detent
childrenReact.ReactNode——

安装

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

同类组件