This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 57).
ToggleButton
Jetpack Compose ToggleButton components for displaying native Material3 toggle buttons.
Android
Included in Expo Go
Expo UI provides four toggle button components that match the official Jetpack Compose Toggle Button API: ToggleButton, IconToggleButton, FilledIconToggleButton, and OutlinedIconToggleButton.


Installation
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
Basic toggle button
A toggle button with text and icon content.
BasicToggleButtonExample.tsx
Icon toggle button variants
Use different icon toggle button components to convey varying levels of emphasis.
IconToggleButtonVariantsExample.tsx
Custom colors
Override checked and unchecked colors using the colors prop.
CustomColorsToggleButtonExample.tsx
Disabled toggle button
DisabledToggleButtonExample.tsx
API
import { ToggleButton, IconToggleButton, FilledIconToggleButton, OutlinedIconToggleButton, } from '@expo/ui/jetpack-compose';
No API data file found, sorry!