Skip to main content

Button

Demo

zeta-web v0.6.6
Web Components

Buttons facilitate user interaction.

Storybook

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

Slots

NameDescriptionType
defaultContent shown on button; typically text.text
leadingIconLeading icon of button. Full list of icons can be found at Zeta Icons.zeta-icon
trailingIconTrailing icon of button. Full list of icons can be found at Zeta Iconszeta-icon

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' | 'positive' | 'negative' | 'outline' | 'outline-subtle' | 'text'"primary"Flavored
sizeSize of component"small" | "medium" | "large""medium"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=23132-166632