Skip to main content

Button

Demo

zeta-web v0.9.0
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

Attributes

NameDescriptionTypeDefault
leadingIconLeading icon of button. Full list of icons can be found at https://design.zebra.com/iconsZeta Icons.ZetaIconName | null
trailingIconTrailing icon of button. Full list of icons can be found at https://design.zebra.com/iconsZeta Icons.ZetaIconName | null

Inherited Attributes

NameDescriptionTypeDefaultInherited From
flavorThe flavor of the component determines the visual style of the component.'primary' | 'positive' | 'negative' | 'outline' | 'outline-subtle' | 'text'"primary"Flavored
shapeWhether the component is sharp, rounded or fully rounded.This will change the border radius and icon font.Possible values are: - sharp: No border radius, uses "zeta-icons-sharp"- rounded: Minimal border radius, uses "zeta-icons-round"- full: Full border radius, uses "zeta-icons-round"'sharp' | 'rounded' | 'full'"rounded"BaseButton
sizeSize of componentSizeType"medium"BaseButton
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