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
Parameter | Type | Description |
---|---|---|
imageVector | ImageVector | Vector icon to display |
resourceId | @DrawableRes Int | Resource ID of the drawable |
bitmap | ImageBitmap | Bitmap image to display |
painter | Painter | Custom painter for drawing the icon |
modifier | Modifier | Modifier for the icon |
contentDescription | String? | Accessibility description |
tint | Color | Color tint applied to the icon |