BadgeDefaults

The default values for the Badge component.

Properties

Link copied to clipboard
@get:Composable
val DotColor: Color

the default dot color

Link copied to clipboard
val DotSize: Dp

the default dot size

Link copied to clipboard

the default extraSmall size of badge

Link copied to clipboard

the default regular size of number badge

Link copied to clipboard

the default small size of number badge

Link copied to clipboard

the default regular size of badge

Link copied to clipboard

the default small size of badge

Functions

Link copied to clipboard
@Composable
fun badgeColors(): BadgeColors

default colors for badge

@Composable
fun badgeColors(backgroundColor: Color = Color.Unspecified, contentColor: Color = Color.Unspecified): BadgeColors

Create a BadgeColors with expected background color and content color.

Link copied to clipboard
fun badgeSize(width: Dp = Dp.Unspecified, height: Dp = Dp.Unspecified): BadgeSize

Create a BadgeSize with expected width and height.

Link copied to clipboard
@Composable
fun badgeVibrants(): BadgeVibrants

default vibrants for badge

@Composable
fun badgeVibrants(backgroundVibrants: Vibrant = Vibrant.Unspecified, contentVibrants: Vibrant = Vibrant.Unspecified): BadgeVibrants

Create a BadgeVibrants with expected background color and content color.

Link copied to clipboard
@Composable
fun numberBadgeColors(): BadgeColors

default colors for number badge