Note
This page describes the iOS-style widgets. For the adaptive widgets, see Adaptive.md.
To use components from the library, your app theme needs to CupertinoTheme
:
@Composable
fun AppTheme(
content: @Composable () -> Unit
) {
CupertinoTheme(content = content)
}
All components work in light and dark mode. Note that the list below might be incomplete, check the source code to find all available components.
iOS-style buttons. Usage: CupertinoButton
or CupertinoIconButton
.
An iOS-style date picker. Usage: CupertinoDatePicker
.
An iOS-style dialog. Usage: CupertinoDialog
or CupertinoDialogNative
.
An iOS-style divider. Usage: CupertinoDivider
.
An iOS-style navigation bar. Usage: CupertinoNavigationBar
. For the items, use CupertinoNavigationBarItem
.
An iOS-style progress indicator. Usage: CupertinoActivityIndicator
.
Basic visual layout structure, recommended to use with the top bar and navigation bar. Usage: CupertinoScaffold
.
An iOS-style slider that allow users to make selections from a range of values. Usage: CupertinoSlider
.
An iOS-style switch. Usage: CupertinoSwitch
.
An iOS-style top app bar. Usage: CupertinoTopAppBar
.