Floating Action Button
Floating action button component for Universal Dashboard
A floating action button (FAB) performs the primary, or most common, action on a screen.
A floating action button appears in front of all screen content, typically as a circular shape with an icon in its center. FABs come in two types: regular, and extended.
Only use a FAB if it is the most suitable way to present a screen’s primary action.
Only one floating action button is recommended per screen to represent the most common action.

Floating Action Button

1
New-UDFloatingActionButton -Icon (New-UDIcon -Icon user) -Size Small
2
New-UDFloatingActionButton -Icon (New-UDIcon -Icon user) -Size Medium
3
New-UDFloatingActionButton -Icon (New-UDIcon -Icon user) -Size Large
Copied!

OnClick

1
New-UDFloatingActionButton -Icon (New-UDIcon -Icon user) -OnClick {
2
Show-UDToast -Message "Hello!"
3
}
Copied!
New-UDFloatingActionButton
Name
Type
Description
Required
Id
String
The ID of the component. It defaults to a random GUID.
false
Icon
Object
The icon to put within the floating action button.
false
Size
Object
The size of the button.
false
OnClick
Object
A script block to execute when the floating action button is clicked.
false
Last modified 6mo ago