Protected
Internal
_The flavor of the component determines the visual style of the component.
Supported values for flavor
:
"primary"
- Blue background."positive"
- Green background."negative"
- Red background."outline"
- Primary outline only."outline-subtle"
- Grey outline only."text"
- Primary text only."subtle"
- White background with grey text. Same action colors as 'text' flavor.Protected
internalsLeading icon of button. Full list of icons can be found at Zeta Icons.
Optional
nameName for the button, used if the button is in a form.
Trailing icon of button. Full list of icons can be found at Zeta Icons.
Optional
typeThe type of the button when used in a form
Optional
valueThe value of the name property When submitted as part of a form
Static
formStatic
Internal
shadowStatic
stylesProtected
_
Buttons are used to trigger actions.
Slot
Part
button - The button element
Part
icon - The icon element of the button, for buttons of type "icon".
Figma
https://www.figma.com/file/JesXQFLaPJLc1BdBM4sisI/🦓-ZDS---Components?node-id=23126-110945
Storybook
https://design.zebra.com/web/storybook/?path=/docs/components-buttons--docs