State of Compose 2023 results are in! Click here to learn more

← Back to Material Compose

DefaultDivider

Component
in
Material
. Since 0.1.0-dev17

Overview

Code Examples

Contains default values used by tabs from the Material specification.

Overloads

DefaultDivider

@Deprecated(
    "TabConstants has been replaced with TabDefaults",
    ReplaceWith(
        "TabDefaults",
        "androidx.compose.material.TabDefaults"
    )
)
object TabConstants {
    /**
     * Default [Divider], which will be positioned at the bottom of the [TabRow], underneath the
     * indicator.
     *
     * @param modifier modifier for the divider's layout
     * @param thickness thickness of the divider
     * @param color color of the divider
     */
    @Composable
    fun DefaultDivider(
        modifier: Modifier = Modifier,
        thickness: Dp = DefaultDividerThickness,
        color: Color = AmbientContentColor.current.copy(alpha = DefaultDividerOpacity)
    )