---
title: "ToggleButtonSize"
description: "Represents the size of a [ToggleButton]."
type: "class"
lastmod: "2026-08-27"
---
## API Reference

> Source set: Common

```kotlin
public class ToggleButtonSize internal constructor(public val height: Dp)
```

Represents the size of a [ToggleButton](/jetpack-compose/androidx.compose.material3/material3/components/ToggleButton/api).

Changing the toggle button size will affect default values used by a toggle button, such as
container height, shapes, padding, icon size, and icon spacing.

## Members

### Companion

> Source set: Common

```kotlin
public companion object
```

## Properties

### ExtraSmall

> Source set: Common

```kotlin
public val ExtraSmall: ToggleButtonSize =
            ToggleButtonSize(ButtonDefaults.ExtraSmallContainerHeight)
```

Extra Small toggle button size.

### Small

> Source set: Common

```kotlin
public val Small: ToggleButtonSize = ToggleButtonSize(ToggleButtonDefaults.MinHeight)
```

Small toggle button size.

### Medium

> Source set: Common

```kotlin
public val Medium: ToggleButtonSize = ToggleButtonSize(ButtonDefaults.MediumContainerHeight)
```

Medium toggle button size.

### Large

> Source set: Common

```kotlin
public val Large: ToggleButtonSize = ToggleButtonSize(ButtonDefaults.LargeContainerHeight)
```

Large toggle button size.

### ExtraLarge

> Source set: Common

```kotlin
public val ExtraLarge: ToggleButtonSize =
            ToggleButtonSize(ButtonDefaults.ExtraLargeContainerHeight)
```

Extra Large toggle button size.
