TabRowDefaults

Properties

Link copied to clipboard

The default corner radius of the sliding indicator in TabRow. COUI draws capsules (radius = height / 2), hence 20dp for the full 40dp height.

Link copied to clipboard

The default height of the TabRow. COUI SegmentButton style height (40dp).

Link copied to clipboard

The default maximum width of the tab in TabRow. COUI segments have no maximum width.

Link copied to clipboard

The default minimum width of the tab in TabRow. COUI coui_segment_min_width (52dp).

Link copied to clipboard

The default corner radius of the sliding indicator in TabRowWithContour. Half the 32dp indicator height (40dp container minus the 4dp inset on both sides).

Link copied to clipboard

The default height of the TabRowWithContour. COUI SegmentButton style height (40dp).

Link copied to clipboard

The default maximum width of the tab in TabRowWithContour. COUI segments have no maximum width.

Link copied to clipboard

The default minimum width of the tab in TabRowWithContour. COUI coui_segment_min_width (52dp).

Link copied to clipboard

The default inset between the container and the indicator in TabRowWithContour. COUI SegmentButton style android:padding (4dp).

Link copied to clipboard

The indicator corner radius of the COUI SegmentButton.Tiny style: (32dp - 2 * 2dp) / 2.

Link copied to clipboard

The height of the COUI SegmentButton.Tiny style (32dp), for use as TabRowWithContour's height together with TabRowWithContourTinyPadding and TabRowWithContourTinyCornerRadius.

Link copied to clipboard

The contour inset of the COUI SegmentButton.Tiny style (android:padding 2dp).

Functions

Link copied to clipboard
fun tabRowColors(backgroundColor: Color = if (COUITheme.colorScheme.background.luminance() < 0.5f) { SegmentContainerDark } else { SegmentContainerLight }, contentColor: Color = COUITheme.colorScheme.onSurface, selectedBackgroundColor: Color = if (COUITheme.colorScheme.background.luminance() < 0.5f) { SegmentIndicatorDark } else { SegmentIndicatorLight }, selectedContentColor: Color = COUITheme.colorScheme.onSurface): TabRowColors

The default colors for the TabRow and TabRowWithContour, following COUISegmentButtonLayout: both label states default to couiColorLabelPrimary — the selected state is distinguished by the indicator and the medium font weight.