Configure icons for quick actions
mainThe icon property on an Action supports different types of images, primarily for iOS:
- SF Symbols: Use the
symbol:prefix to access Apple's SF Symbols (e.g.,symbol:heart.fill). These are iOS-only. - System Icons: Use specific built-in names like
compose,play,pause,add,location,search,share, etc. If a name doesn't match a built-in icon, it defaults to a custom image with that name. - Custom Images: Use the
asset:prefix to load an image from the app's bundle (e.g.,asset:heart). The image will be masked to conform to the system-defined icon style.
For Android, refer to the Android design docs for shortcut icons.
// Examples of icon strings
const sfSymbolIcon = "symbol:heart.fill";
const systemIcon = "search";
const customAssetIcon = "asset:my_custom_icon";