Skip to content
Docs Try Aspire
Docs Try

IResource.withIconName

Method
📦 Aspire.Hosting v13.4.0
interface IResource {
// ... omitted for brevity
withIconName(
iconName: string,
iconVariant?: IconVariant): IResource;
}

Signature

method withIconName builder
Specifies the icon to use when displaying the resource in the dashboard.
withIconName(
iconName: string,
iconVariant?: IconVariant): IResource
iconName string
iconVariant IconVariant optional = Filled
IResource

Defined on

This method is defined on the following type: