KPButtonColors

A stable interface for defining color properties for a button, extending ButtonColors. This interface adds support for specifying a border color that adapts to the button's state.

Key Features

  • Extends ButtonColors, inheriting properties for background and content colors.

  • Adds a method to dynamically provide border colors based on the enabled state.

See also

Functions

Link copied to clipboard
abstract fun backgroundColor(enabled: Boolean): State<Color>
Link copied to clipboard
abstract fun borderColor(enabled: Boolean): State<Color?>

Provides the border color for the button, which adapts based on the enabled state.

Link copied to clipboard
abstract fun contentColor(enabled: Boolean): State<Color>