Package-level declarations
Types
Link copied to clipboard
object NavigationRailItemDefaults
Functions
Link copied to clipboard
fun NavigationDrawerItem(label: String, selected: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier, icon: SparkIcon? = null, badge: @Composable () -> Unit? = null, shape: Shape = SparkTheme.shapes.full, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
Spark navigation drawer item.
Link copied to clipboard
fun NavigationRail(modifier: Modifier = Modifier, header: @Composable ColumnScope.() -> Unit? = null, content: @Composable ColumnScope.() -> Unit)
Spark bottom navigation rail. Navigation rails provide access to main destinations in apps when using tablet and desktop screens.
Link copied to clipboard
fun NavigationRailItem(selected: Boolean, onClick: () -> Unit, icon: SparkIcon, modifier: Modifier = Modifier, enabled: Boolean = true, label: String? = null, alwaysShowLabel: Boolean = true, colors: NavigationRailItemColors = NavigationRailItemDefaults.colors(), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
Spark navigation rail item.
Link copied to clipboard
fun PermanentDrawerSheet(modifier: Modifier = Modifier, drawerContainerColor: Color = SparkTheme.colors.surface, drawerContentColor: Color = contentColorFor(drawerContainerColor), content: @Composable ColumnScope.() -> Unit)
Content inside of a permanent navigation drawer.
Link copied to clipboard
fun PermanentNavigationDrawer(drawerContent: @Composable () -> Unit, modifier: Modifier = Modifier, content: @Composable () -> Unit)
Spark navigation permanent drawer. Navigation drawers provide ergonomic access to destinations in an app. They’re often next to app content and affect the screen’s layout grid.
Link copied to clipboard
fun UpNavigationIcon(modifier: Modifier = Modifier, contentDescription: String = stringResource(id = R.string.spark_back_arrow_content_description), onClick: () -> Unit)