SpeedDial
Since 0.1.0-alpha.22IzzyBlazor.SpeedDial in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly
and its doc comments.
Properties (14)
Labelstring requiredThe button's name, such as "Create": what the actions have in common.
IconIconData? (computed)The button's icon. Defaults to a plus.
OpenIconIconData? (computed)The button's icon while the actions show. Defaults to a close icon.
PlacementFloatPlacement = FloatPlacement.BottomEndWhere the button sits. Defaults to FloatPlacement.BottomEnd.
Roundbool = falseMakes the button round. Defaults to a rounded square, as a FloatingButton is.
SpinIconbool = trueSpins the button's icon into OpenIcon as the actions open, and back (the default). False swaps them without turning. No turning with reduced motion either way.
DirectionSpeedDialDirection = SpeedDialDirection.UpWhich way the actions open from the button. Defaults to SpeedDialDirection.Up.
OpenOnSpeedDialTrigger = SpeedDialTrigger.ClickWhat opens it: a click (the default), or the pointer coming over the button. Hover needs script; with JavaScript off and on touch screens, a click opens it either way.
ShowLabelsbool = trueShows each action's label beside it (the default), clear on touch screens and with JavaScript off. False shows only the icons, with the labels as tooltips. Opening toward the start or end shows only the icons.
PanelWidthLength? (computed)The width of the menu panel, such as Length.Rem(16) for a column of long labels. Defaults to the content's width, at least 10rem and the trigger's width, up to 24rem. Never wider than the screen.
ChildContentRenderFragment?The MenuItems, MenuGroups and MenuDividers.
@bind-Openbool = falseWhether it is open. Use @bind-Open to follow changes on interactive pages.
Idstring?The element id. Generated when not set.
Plus 17 item props and 4 common props.
Show them hereEvents (0)
No events.
Parts (1)
Components written inside SpeedDial, documented here with it.
SpeedDialAction
One action of a SpeedDial: a round icon with its label beside it, or as its tooltip. Like a MenuItem, it's a link (Href), a form post (Submit) or C# (OnClick), so it acts on static pages too.
IconIconData requiredThe icon, such as Lucide.FileText.
Labelstring requiredWhat it does, such as "Invoice": its name, shown beside it or as its tooltip.
Hrefstring?Makes it a link to this address.
Submitbool = falseMakes it a submit button for the form around the speed dial, or the one named by Form.
FormActionstring?An address a submit action posts to in place of its form's.
Formstring?The id of the form a submit action belongs to.
Disabledbool = falseTurns it off.
OnClickEventCallback<MouseEventArgs>Runs on click on interactive pages (a link still navigates). Has no effect on static pages.
Types (5)
Accent
classThe color of a control: buttons, badges, tags, banners, progress bars and menu items. Primary, Neutral and Danger are the roles; emphasis comes from the variant (solid, soft, outline, ghost, link), not from more colors. For one control in another color, use Of (any CSS color) or Token (a theme token); text on it is chosen for contrast.
| Member | Description |
|---|---|
Primary | The brand color, for the main action. |
Neutral | A quiet, gray action. |
Danger | A destructive action, such as Delete. |
Of(string css) | Any CSS color, such as |
Token(string name) | A theme token, such as |
From(Color color) | A |
FloatPlacement
enumWhere a floating button sits in the window. Start and End follow the reading direction.
| Value | Description |
|---|---|
BottomEnd | The bottom corner on the end side (the default). |
BottomStart | The bottom corner on the start side. |
BottomCenter | The bottom edge, centered. |
Length
structA width, height or flex basis: a size token, a keyword, or a CSS length built with a factory such as Rem.
| Member | Description |
|---|---|
Sm | 640px (matches the |
Md | 768px (matches the |
Lg | 1024px (matches the |
Xl | 1280px (matches the |
Prose | A comfortable reading width, 68 characters. |
Full | 100% of the containing block. |
Auto |
|
FitContent |
|
MinContent |
|
MaxContent |
|
Px(double value) | Pixels. |
Rem(double value) | Root ems (16px each by default). |
Percent(double value) | Percent of the containing block. |
Ch(double value) | Character widths, for text measures. |
Vw(double value) | Percent of the viewport width. |
Dvh(double value) | Percent of the dynamic viewport height (accounts for mobile browser bars). |
Of(string css) | Any CSS length, such as |
Css string | The CSS value this length renders as. |
SpeedDialDirection
enumWhich way a SpeedDial's actions open from its button.
| Value | Description |
|---|---|
Up | Above the button (the default). |
Down | Below the button, for one at the top of an area. |
Start | Toward the start of the line (left, in left-to-right languages). Icons only. |
End | Toward the end of the line. Icons only. |
SpeedDialTrigger
enumWhat opens a SpeedDial.
| Value | Description |
|---|---|
Click | A click or tap on the button (the default). Works with JavaScript off. |
Hover | The pointer coming over the button, with script; a click still opens it. |