Skip to content

Button ​

ButtonButtonButton

Buttons are clickable elements primarily used to perform an action, as they communicate the call-to-action and their style calls for users' attention. Buttons can also be used to allow navigation in some cases, such as for the β€œNext” or β€œBack” buttons that help users navigate through a form.

UX/UI Guidelines

Check the design documentation of the component in ZeroHeight.

From Figma to code ​

...

Customization ​

INFO

Check everything about the customization mechanics in the "How it works" documentation.

CSS VariableTypeDescription
--z-button--bgcolorBackground color
--z-button--colorcolorForeground color
--z-button--radiusdistanceRadius of the button
--z-button--backdropcolorPopover's backdrop color
--z-button--popover-radiusdistancePopover's radius
--z-button--popover-paddingdistancePopover's padding

Both, background and foreground color can be customized using the --z-button--bg and --z-button--color or the custom attribute.

Button Button

Accessibility ​

...