Composables
Components Unstyled Icons API
Join Radar
Join Radar Components Unstyled Icons API UI Kit UI Blocks SVG to Compose Android Distribution Community Docs Blog Colors
Compose TV Material
  • AssistChip
  • Button
  • Card
  • Carousel
  • Checkbox
  • ClassicCard
  • CompactCard
  • DenseListItem
  • FilterChip
  • Icon
  • IconButton
  • InputChip
  • ListItem
  • MaterialTheme
  • ModalNavigationDrawer
  • NavigationDrawer
  • NavigationDrawerItem
  • OutlinedButton
  • OutlinedIconButton
  • ProvideTextStyle
  • RadioButton
  • StandardCardContainer
  • SuggestionChip
  • Surface
  • Switch
  • Tab
  • TabRow
  • Text
  • TriStateCheckbox
  • WideButton
  • WideCardContainer
  • WideClassicCard
Components › Compose TV Material › Switch

Switch

View Markdown Open in ChatGPT Open in Claude

Material Design Switch.

Switch social preview
RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
API Examples

SwitchSample

@Composable
fun SwitchSample() {
    Switch(checked = true, onCheckedChange = {})
}

Other Switch components

View all →
Switch
Switch
In Material 3 Compose
Switch
Switch
In Material Compose
SplitSwitchButton
In Wear Material 3 Compose
SwitchButton
In Wear Material 3 Compose
Switch
In Wear Material Compose
On this page
  • SwitchSample

Never miss a Compose release

Get an alert the moment a new Compose release is out: new APIs, new components, new things to experiment with. Straight from Google's servers.

Join 3,000+ Compose developers. No spam, ever.