JengaChipStyle

class JengaChipStyle(val shape: Shape? = null, val minHeight: Dp? = null, val contentPadding: PaddingValues? = null, val textStyle: TextStyle? = null, val selectedTextStyle: TextStyle? = null, val colors: JengaChipColors? = null, val iconSpacing: Dp? = null)(source)

Theme-wide style for every JengaChip, set through io.github.joelkanyi.jenga.theme.JengaComponentStyles.chip. A null value keeps Jenga's default; arguments passed to a JengaChip call still win.

Constructors

Link copied to clipboard
constructor(shape: Shape? = null, minHeight: Dp? = null, contentPadding: PaddingValues? = null, textStyle: TextStyle? = null, selectedTextStyle: TextStyle? = null, colors: JengaChipColors? = null, iconSpacing: Dp? = null)

Properties

Link copied to clipboard

the color set.

Link copied to clipboard

padding inside the chip.

Link copied to clipboard

the gap between the leading icon, the label and the trailing content.

Link copied to clipboard

the minimum visual height.

Link copied to clipboard

merged onto the chip's text style while selected, so set only what changes, e.g. TextStyle(fontWeight = FontWeight.Medium).

Link copied to clipboard
val shape: Shape?

the chip shape.

Link copied to clipboard

the label text style.

Functions

Link copied to clipboard
fun copy(shape: Shape? = this.shape, minHeight: Dp? = this.minHeight, contentPadding: PaddingValues? = this.contentPadding, textStyle: TextStyle? = this.textStyle, selectedTextStyle: TextStyle? = this.selectedTextStyle, colors: JengaChipColors? = this.colors, iconSpacing: Dp? = this.iconSpacing): JengaChipStyle