ModalHeaderParams
data class ModalHeaderParams(val variant: ModalsHeaderVariant, val title: String? = null, val trailingAction: ModalHeaderAction? = null, val leadingAction: ModalHeaderAction? = null)
Class that represents the necessary data to build a ModalHeader
Parameters
variant
ModalsHeaderVariant determines how the component looks and feels
title
Title to be display in the ModalsHeaderVariant.Regular variant
trailingAction
ModalHeaderAction Optional action for the ModalsHeaderVariant.Regular and ModalsHeaderVariant.Floating variants of the header
leadingAction
ModalHeaderAction Mandatory action for the ModalsHeaderVariant.Regular and ModalsHeaderVariant.Floating variants of the header. Usually use to add a close button.
Constructors
Link copied to clipboard
constructor(variant: ModalsHeaderVariant, title: String? = null, trailingAction: ModalHeaderAction? = null, leadingAction: ModalHeaderAction? = null)