Package-level declarations

Functions

Link copied to clipboard
fun IndependentTab(text: String, isSelected: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

Tabs component provides a way to organize content into separate views that users can switch between by clicking on tab headers. It's commonly used for presenting different sections of content in a compact and organized manner, making it ideal for dashboards and multi-section forms.

Link copied to clipboard
fun IndependentTabs(modifier: Modifier = Modifier, state: LazyListState = rememberLazyListState(), numberOfTabs: Int? = null, contentPadding: PaddingValues = PaddingValues(0.dp), space: Dp = OdsTheme.layout.gap.layout.M, tabs: LazyListScope.() -> Unit)

Independent tabs are a set of related tabs that are not sharing a container. They are used to display different content views. They are mutually exclusive, meaning only one tab can be selected at a time.

Link copied to clipboard
fun SegmentedTabs(tabs: List<String>, selectedIndex: Int, onTabClick: (index: Int) -> Unit, modifier: Modifier = Modifier)

Segmented tabs are a set of related tabs with a shared container, used to display different content views. They are mutually exclusive, meaning only one tab can be selected at a time.