The FloatingActionButton component provides many predefined appearance options such as different shapes, sizes and theme colors.
The FloatingActionButton allows you to specify predefined theme colors.
themeColor values are:
primary(Default)—Applies coloring based on the primary theme color.
secondary—Applies coloring based on the secondary theme color.
tertiary—Applies coloring based on the tertiary theme color.
info—Applies coloring based on the info theme color.
success—Applies coloring based on the success theme color.
warning—Applies coloring based on the warning theme color.
error—Applies coloring based on the error theme color.
dark—Applies coloring based on the dark theme color.
light—Applies coloring based on the light theme color.
inverse—Applies coloring based on the inverted theme color.
The FloatingActionButton allows you to set different shapes.
shape values are:
pill(Default)—Applies border radius equal to half of the height of the FloatingActionButton. If the Floating Action Button contains only icon, the shape will be circle.
circle—Applies circle shape on the FloatingActionButton.
rectangle—Applies no border radius on the FloatingActionButton.
rounded—Applies default border radius on the FloatingActionButton.
square—Applies square shape on the FloatingActionButton.
The FloatingActionButton allows you to set different sizes.
size values are:
small—Applies half of the default padding, e.g.
medium(Default)—Applies the default padding, e.g.
large—Applies one and one half of the default padding, e.g.