public class ToggleButtonSize internal constructor(public val height: Dp)
Represents the size of a ToggleButton and its variants.
Providing a different ToggleButtonSize will affect default internal layout configurations used by the button, such as container height, shapes, content padding, icon sizes, and icon spacing. Note that standard layout modifiers (such as androidx.compose.foundation.layout.size or androidx.compose.foundation.layout.heightIn) can still be applied to adjust overall container dimensions.
Members
Companion
public companion object
Properties
ExtraSmall
public val ExtraSmall: ToggleButtonSize =
ToggleButtonSize(ButtonDefaults.ExtraSmallContainerHeight)
Extra Small toggle button size.
Small
public val Small: ToggleButtonSize = ToggleButtonSize(ButtonSmallTokens.ContainerHeight)
Small toggle button size.
Medium
public val Medium: ToggleButtonSize = ToggleButtonSize(ButtonDefaults.MediumContainerHeight)
Medium toggle button size.
Large
public val Large: ToggleButtonSize = ToggleButtonSize(ButtonDefaults.LargeContainerHeight)
Large toggle button size.
ExtraLarge
public val ExtraLarge: ToggleButtonSize =
ToggleButtonSize(ButtonDefaults.ExtraLargeContainerHeight)
Extra Large toggle button size.