BoxBadgeAttributes

data class BoxBadgeAttributes(val boxWidth: Dp = 34.dp, val boxHeight: Dp = 40.dp, val cornerRadius: Dp = 4.dp, val verticalPadding: Dp = 0.dp, val horizontalPadding: Dp = 0.dp, val elevation: Dp = 0.dp, val iconSize: IconSize = BoxBadgeIconSize, val line: Int = 2, val fontColor: Color? = null, val textStyle: TextStyle? = null)

Customizable styling attributes of the KPBoxBadge component

Parameters

boxWidth

The width of the card in Dp.

boxHeight

The height of the card in Dp.

cornerRadius

The corner radius of the card, which determines how rounded the corners will be.

verticalPadding

The amount of vertical padding inside the card, adding space above and below the content.

horizontalPadding

The amount of horizontal padding inside the card, adding space to the sides of the content.

elevation

The elevation of the card, affecting its shadow depth and positioning on the z-axis.

iconSize

The size of the icon displayed inside the badge, controlling both its width and height.

line

The exact number of lines (min and max) allowed for the badge title text.

fontColor

The color of the badge title text.

Constructors

Link copied to clipboard
constructor(boxWidth: Dp = 34.dp, boxHeight: Dp = 40.dp, cornerRadius: Dp = 4.dp, verticalPadding: Dp = 0.dp, horizontalPadding: Dp = 0.dp, elevation: Dp = 0.dp, iconSize: IconSize = BoxBadgeIconSize, line: Int = 2, fontColor: Color? = null, textStyle: TextStyle? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val fontColor: Color? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val line: Int = 2
Link copied to clipboard
val textStyle: TextStyle? = null

The text style of the badge title, such as font size, weight, and letter spacing.

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard