CommercialMessage

fun CommercialMessage(value: String, type: CommercialMessageType, modifier: Modifier = Modifier, variant: CommercialMessageVariant = Emphasised)

Commercial Message component is a badge that adorns range products with an IKEA sales steering category. It is built on top of androidx.compose.material3.Text and comes with pre-defined appearance based on Skapa design and guidelines.

Parameters

value

The text to be displayed inside the component.

type

defines the Commercial Message type style. There is no default type, it always has to be declared.

modifier

Modifier to be applied to the CommercialMessage.

variant

CommercialMessageVariant defines the Commercial Message variant. The default variant is CommercialMessageVariant.Emphasised.

See also

Samples

net.ikea.skapa.ui.samples.CommercialMessageSample