API reference
API reference
Select your platform
No SDKs available
No versions available

SideNavItemDefaults Object

Defaults used in .SpatialSideNavItem.

Signature

object SideNavItemDefaults

Functions

colors ()
Creates a .SpatialSideNavItem that will animate between the provided colors.
Signature
fun colors(): SideNavItemColors
colors ( selectedBackgroundColor , selectedPrimaryColor , selectedSecondaryColor , unselectedBackgroundColor , unselectedPrimaryColor , unselectedSecondaryColor )
Creates a .SpatialSideNavItem that will animate between the provided colors.
Signature
fun colors(selectedBackgroundColor: Color = Color.Unspecified, selectedPrimaryColor: Color = Color.Unspecified, selectedSecondaryColor: Color = Color.Unspecified, unselectedBackgroundColor: Color = Color.Unspecified, unselectedPrimaryColor: Color = Color.Unspecified, unselectedSecondaryColor: Color = Color.Unspecified): SideNavItemColors
Parameters
selectedBackgroundColor: Color
the color to use for the RadioButton when selected and enabled.
selectedPrimaryColor: Color
the color to use for the RadioButton's inner dot when selected and enabled.
selectedSecondaryColor: Color
the color to use for the RadioButton when unselected and enabled.
unselectedBackgroundColor: Color
the color to use for the RadioButton when disabled and selected.
unselectedPrimaryColor: Color
the color to use for the RadioButton's inner dot when disabled and selected.
unselectedSecondaryColor: Color
the color to use for the RadioButton when disabled and not selected.
Returns
the resulting SideNavItemColors used for the RadioButton
Did you find this page helpful?