JengaSearchFieldStyle

class JengaSearchFieldStyle(val shape: Shape? = null, val minHeight: Dp? = null, val contentPadding: PaddingValues? = null, val textStyle: TextStyle? = null, val colors: JengaTextFieldColors? = null)(source)

Theme-wide style for every JengaSearchField or every JengaSearchTrigger, set through io.github.joelkanyi.jenga.theme.JengaComponentStyles.searchField and io.github.joelkanyi.jenga.theme.JengaComponentStyles.searchTrigger. A null value falls back to the theme's text field style, then to Jenga's default; arguments passed to a call still win.

Constructors

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

Properties

Link copied to clipboard

the color set.

Link copied to clipboard

padding inside the field.

Link copied to clipboard

the minimum height.

Link copied to clipboard
val shape: Shape?

the field shape; falls back to JengaSearchFieldDefaults.shape, not the text field shape.

Link copied to clipboard

the query and placeholder 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, colors: JengaTextFieldColors? = this.colors): JengaSearchFieldStyle