FloatingButton
Since 0.1.0-alpha.22IzzyBlazor.FloatingButton in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly
and its doc comments.
Properties (14)
IconIconData requiredThe icon, such as Lucide.Plus.
Labelstring requiredWhat it does, such as "New invoice": its accessible name, and its text with ShowLabel.
PlacementFloatPlacement = FloatPlacement.BottomEndWhere it sits. Defaults to FloatPlacement.BottomEnd.
SizeControlSize = ControlSize.LgIts size. Defaults to ControlSize.Lg.
Hrefstring?Makes it a link to this address.
FormActionstring?An address a submit button posts to in place of its form's.
Formstring?The id of the form a submit button belongs to, when it's outside it.
Disabledbool = falseTurns it off.
Events (1)
OnClickEventCallback<MouseEventArgs>Runs on click on interactive pages (a link still navigates). Has no effect on static pages.
Types (3)
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 |
ControlSize
enumThe height of interactive controls. Shared by buttons and form fields, so a button and an input of the same size line up in a row.
| Value | Description |
|---|---|
Sm | 32px tall, small text. |
Md | 36px tall (the default). |
Lg | 44px tall, large text. For touch-first and marketing pages. |
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. |