Package-level declarations
The Icon component display any Icon coming from either of these sources:
It behaves like the Compose Foundation Icon component but it also accepts size parameter that have the following values (IconDefaults.kt):
Small (16.dp)
Medium (24.dp) - default size
Large (32.dp)
ExtraLarge (40.dp)
Use IconIntent.kt to pass one of the accepted intents:
Basic
Accent
Main
Support
Surface
Success
Alert
Danger
Neutral
Current
Unspecified
Icon(
sparkIcon = SparkIcons.Check,
tint = IconIntent.Main,
contentDescription = "Done",
size = IconSize.Large,
)
Light | |
Dark |
Types
Functions
Icon component that draws bitmap using tint, defaulting to LocalContentColor. For a clickable icon, see IconButton.
Icon component that draws painter using tint, defaulting to LocalContentColor. For a clickable icon, see IconButton.
Icon component that draws imageVector using tint, defaulting to LocalContentColor. For a clickable icon, see IconButton.
Icon component that draws sparkIcon using tint, defaulting to LocalContentColor. For a clickable icon, see IconButton.