ModalHeaderParams

data class ModalHeaderParams(val variant: ModalsHeaderVariant, val title: String? = null, val trailingAction: ModalHeaderAction? = null, val leadingAction: ModalHeaderAction? = null)

Deprecated

Use ModalHeader in combination with Sheet for Material3 instead

Replace with

ModalHeader

Class that represents the necessary data to build a ModalHeader

Constructors

Link copied to clipboard
constructor(variant: ModalsHeaderVariant, title: String? = null, trailingAction: ModalHeaderAction? = null, leadingAction: ModalHeaderAction? = null)

Properties

Link copied to clipboard

ModalHeaderAction Mandatory action for the ModalsHeaderVariant.Regular and ModalsHeaderVariant.Floating variants of the header. Usually use to add a close button.

Link copied to clipboard
val title: String? = null

Title to be display in the ModalsHeaderVariant.Regular variant

Link copied to clipboard
Link copied to clipboard

ModalsHeaderVariant determines how the component looks and feels