Icon

Icon

A graphic symbol that represents an action, file, device, directory, or common operation.

Installation

./gradlew lumo --add Icon

Usage

Basic Icon

Icon(
    imageVector = Icons.Default.Star,
    contentDescription = "Star Icon"
)

Resource Icon

Icon(
    resourceId = R.drawable.ic_icon,
    contentDescription = "Resource Icon",
    tint = AppTheme.colors.primary
)

API Documentation

Parameters

ParameterTypeDescription
imageVectorImageVectorVector icon to display
resourceId@DrawableRes IntResource ID of the drawable
bitmapImageBitmapBitmap image to display
painterPainterCustom painter for drawing the icon
modifierModifierModifier for the icon
contentDescriptionString?Accessibility description
tintColorColor tint applied to the icon