Items in Blazor Speed Dial Component

23 Jan 20234 minutes to read

The action items in Blazor Speed Dial can be added by using SpeedDialItem tag directive.

Fields Type Description
Text string Defines the text content of SpeedDialItem.
IconCss string Defines one or more CSS classes to include an icon or image in speed dial item.
Disabled boolean Defines whether to enable or disable the SpeedDialItem.
Id string Defines a unique value for the SpeedDialItem which can be used to identify the item in event args.
Title string Defines the title of SpeedDialItem to display tooltip.

Icons in speeddial items

You can customize the icon and text of Speed Dial action items using IconCss and Text properties.

Icon only

You can show icon only in SpeedDial items by setting IconCss property. You can show tooltip on hover to show additional details to end-user by setting Title property.

@using Syncfusion.Blazor.Buttons

<SfSpeedDial OpenIconCss="e-icons e-edit" CloseIconCss="e-icons e-close">
    <SpeedDialItems>
        <SpeedDialItem Title="Cut" IconCss="e-icons e-cut"/>
        <SpeedDialItem Title="Copy" IconCss="e-icons e-copy"/>
        <SpeedDialItem Title="Paste" IconCss="e-icons e-paste"/>
    </SpeedDialItems>
</SfSpeedDial>

Blazor Speed Dial with Icon

Text Only

You can show only text in Speed Dial items by setting Text property.

@using Syncfusion.Blazor.Buttons

<SfSpeedDial Content="Edit">
    <SpeedDialItems>
        <SpeedDialItem Text="Cut"/>
        <SpeedDialItem Text="Copy"/>
        <SpeedDialItem Text="Paste"/>
    </SpeedDialItems>
</SfSpeedDial>

Blazor Speed Dial with Text

Icon with Text

You can show icon along with text in Speed Dial items by setting IconCss and Text properties.

@using Syncfusion.Blazor.Buttons

<SfSpeedDial OpenIconCss="e-icons e-edit" CloseIconCss="e-icons e-close" Content="Edit">
    <SpeedDialItems>
        <SpeedDialItem Text="Cut" IconCss="e-icons e-cut"/>
        <SpeedDialItem Text="Copy" IconCss="e-icons e-copy"/>
        <SpeedDialItem Text="Paste" IconCss="e-icons e-paste"/>
    </SpeedDialItems>
</SfSpeedDial>

Blazor Speed Dial with Icon and Text

Disabled

You can disable Speed Dial items by setting Disabled property as true.

@using Syncfusion.Blazor.Buttons

<SfSpeedDial Content="Edit">
    <SpeedDialItems>
        <SpeedDialItem Text="Cut" Disabled=true/>
        <SpeedDialItem Text="Copy"/>
        <SpeedDialItem Text="Paste"/>
    </SpeedDialItems>
</SfSpeedDial>

Blazor Speed Dial with Disabled

Animation

The Speed Dial items can be animated during the opening and closing of the popup action items. You can customize the animation’s Effect, Delay, and Duration by setting SpeedDialAnimationSettings tag directive. By default, Speed Dial animates with a Fade effect and supports all SpeedDialAnimationEffect effects.

Below example demonstrates the Speed Dial items with applied Zoom effect.

@using Syncfusion.Blazor.Buttons

<SfSpeedDial OpenIconCss="e-icons e-edit" CloseIconCss="e-icons e-close" Content="Edit">
    <SpeedDialItems>
        <SpeedDialItem Text="Cut" IconCss="e-icons e-cut"/>
        <SpeedDialItem Text="Copy" IconCss="e-icons e-copy"/>
        <SpeedDialItem Text="Paste" IconCss="e-icons e-paste"/>
    </SpeedDialItems>
    <SpeedDialAnimationSettings Effect="SpeedDialAnimationEffect.Zoom"></SpeedDialAnimationSettings>
</SfSpeedDial>

Blazor Speed Dial Animation

Template

The Speed Dial supports to customize the action items and entire pop-up container by setting ItemTemplate and PopupTemplate tag directive. For more details about templates, check out the link here.

HTML attribute

The Blazor Speed Dial items support adding custom HTML attributes with HtmlAttributes property to customize the items. You can add them as inline attributes or use the @attributes directive.

Below example demonstrates the Speed Dial items with HTML attributes.

@using Syncfusion.Blazor.Buttons

<SfSpeedDial Content="Edit"> 
    <SpeedDialItems>
        <SpeedDialItem Text="Cut" IconCss="e-icons e-cut" style="color:red;"></SpeedDialItem>
        <SpeedDialItem Text="Copy" IconCss="e-icons e-copy"></SpeedDialItem>
        <SpeedDialItem Text="Paste" IconCss="e-icons e-paste"></SpeedDialItem>
    </SpeedDialItems>
</SfSpeedDial>

Blazor Speed Dial With HTML attributes