Class IconSize
Specifies the available icon sizes for rendering icons within the SfIcon component when using the Name property.
Inheritance
Namespace: Syncfusion.Blazor.Buttons
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class IconSize : Enum
Remarks
IconSize values control the visual dimensions of the rendered icon. Small renders at 8px, Medium renders at 16px (the default), and Large renders at 24px. Use this enumeration to maintain UI consistency when displaying icons at different scales.
Examples
The following example demonstrates how to use a large icon with the SfIcon component in Blazor:
<SfIcon Name="@IconName.Save" Size="IconSize.Large" />
Fields
Large
Indicates the largest icon size, where the icon is rendered at 24px.
Declaration
public const IconSize Large
Field Value
Type | Description |
---|---|
IconSize | Represents an icon with a size of 24px. |
Remarks
Large is well-suited for emphasized or visually prominent icon displays.
Medium
Indicates the default medium size for the icon, where the icon is rendered at 16px.
Declaration
public const IconSize Medium
Field Value
Type | Description |
---|---|
IconSize | Represents an icon with a size of 16px, which is the default icon size. |
Remarks
Choose Medium for standard-sized icons within typical button or UI elements.
Small
Indicates the smallest size for the icon, where the icon is rendered at 8px.
Declaration
public const IconSize Small
Field Value
Type | Description |
---|---|
IconSize | Represents an icon with a size of 8px. |
Remarks
Use Small when compact icon presentation is required, such as in toolbars or in dense layouts.