This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
ToggleButton
Jetpack Compose ToggleButton components for displaying native Material3 toggle buttons.
Expo UI provides four toggle button components that match the official Jetpack Compose Toggle Button API: ToggleButton, IconToggleButton, FilledIconToggleButton, and OutlinedIconToggleButton.


Installation
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.
Icon toggle button variants
Use different icon toggle button components to convey varying levels of emphasis.
Custom colors
Override checked and unchecked colors using the colors prop.
Disabled toggle button
API
import { ToggleButton, IconToggleButton, FilledIconToggleButton, OutlinedIconToggleButton, } from '@expo/ui/jetpack-compose';
Components
Type: React.Element<ToggleButtonProps>
A filled icon toggle button with a solid background.
Type: React.Element<ToggleButtonProps>
An icon toggle button with no background.
Type: React.Element<ToggleButtonProps>
An outlined icon toggle button with a border and no fill.
Type: React.Element<ToggleButtonProps>
A toggle button component that can be toggled on and off.
boolean • Default: trueWhether the button is enabled for user interaction.
Type: React.Element<number>