Skip to main content

FAB

Demo

zeta-web v0.6.6
Web Components

Floating action buttons are used for a promoted action.

Storybook

https://design.zebra.com/web/storybook/?path=/docs/components-fabs--docs

Slots

NameDescriptionType
defaultThe icon of the button. Entered as a plain string.text

Attributes

NameDescriptionTypeDefault
labelThe label display on or below the button.string""
roundThe border radius of the button. Used in place of rounded prop.boolean | "full"undefined
extendedWhether or not the FAB is extended.booleanfalse

Inherited Attributes

NameDescriptionTypeDefaultInherited From
flavorFlavor of component.Values:_ primary - blue background._ secondary - yellow background._ positive - green background._ negative - red background._ outline - primary outline only._ outline-subtle - grey outline only.* text - primary text only.'primary' | 'secondary' | 'inverse'"primary"Flavored
sizeSize of component"small" | "medium" | "large""small"BaseButton
roundedWhether the component is rounded or sharp.When true, rounded will set the border radius of the first child, and any children with class 'contourable-target' to --radius-minimal.Otherwise, this value will be --radius-none.boolean | undefinedtrueBaseButton
disabledBoolean for if component is disabled.This will apply disabled styles.booleanfalseBaseButton
tabIndexThe tab index of the component, used to determine the order in which elements receive focus when the user navigates through the document by pressing the Tab key.number0BaseButton
typeThe type of the button when used in a form"submit" | "reset" | "button" | undefinedundefinedBaseButton
nameName for the button, used if the button is in a form.string | undefinedundefinedBaseButton
valueThe value of the name property When submitted as part of a formstring | undefinedundefinedBaseButton

Figma

https://www.figma.com/design/JesXQFLaPJLc1BdBM4sisI/%F0%9F%A6%93-ZDS---Components?node-id=22748-95311