Basic · FloatButton
FloatButton
A floating button is an actionable button that can float on the page

Demos

How to import

FloatButton is supported since 2.85.0.

Basic usage

Size

Three sizes are supported: default, small, large.

Shape

Two shapes are defined by default: square (default) and circle.

Click to jump

You can set the jump address through href, and target specifies the window or frame in which the target web page should be opened.

AI style - Colorful floating buttons

You can set colorful to true to display colorful floating buttons.

Badge

Floating button Group

Subitems can be passed in via items.

API Reference

FloatButton

PropertiesInstructionsTypeDefault
badgeBadge parametersBadgeProps-
colorfulUse colorful floating buttonsbooleanfalse
classNameStyle class namestring-
disabledDisabled statebooleanfalse
hrefClick the jump link, the same as hrefstring-
iconIconReactNode-
onClickClick callback functionstring-
shapeShape, supports round, squarestringround
sizeSize, supports default, small, largestringdefault
styleStyleCSSProperties-
targetSpecifies where to display the URL of the link, same as targetstring-

FloatButtonGroupItem

Add the following parameters based on FloatButtonProps
PropertiesInstructionsTypeDefault
contentText contentString-

FloatButtonGroup

PropertiesInstructionsTypeDefault
classNameStyle class namestring-
disabledDisabled statebooleanfalse
itemsInformation about a single childFloatButtonGroupItem-
stylestyleCSSProperties-