IResource
A file-based item, such as an icon or an image.
Every resource type implements this interface.
Properties
Property | Type | Description |
---|---|---|
Id | string | The unique identifier of the resource. |
Alt | string | Optional alternative text displayed if the resource fails to load. |
Specific Types
Icon
A small graphic image.
An icon may consist of multiple image files (e.g., PNG, JPEG) to support different sizes.
tip
Best Practice: For the best visual result, always provide a single SVG file whenever possible.
Properties
Property | Type | Description |
---|---|---|
Id | string | The unique identifier of the icon. |
Alt | string? | Optional alternative text displayed if the icon fails to load. |
RelativeFilePaths | IDictionary<IconSize, string> | The relative paths to image files for all supported icon sizes. |
Icon Sizes
The available sizes for an icon:
Small
Default
Large
Image
A larger image or picture.
Unlike an Icon, an image consists of a single file and does not support multiple sizes.
Properties
Property | Type | Description |
---|---|---|
Id | string | The unique identifier of the image. |
Alt | string? | Optional alternative text displayed if the image fails to load. |
RelativeFilePath | string | The relative path to the image file. |