Etch component

CTA 1

CTA 1

Copy CTA 1

Configurator settings

Change a setting in the configurator to include it.

Optional. Copies the component under its own name, such as News Card Alpha for a site.

Documentation

The button. It's a link when it has a Link, a real <button> when it doesn't, and a plain span when it's Static. It covers text buttons, buttons with an icon and icon-only buttons.

How to use it

  • Pick the look with Style, Size and Outline; they're ACSS's btn-- classes.
  • Add an Icon and choose Icon Position. Icon Only hides the label visually and keeps it as the accessible name.
  • Leave Link empty for a button that opens a drawer, a dialog or runs a script.
  • Turn on Static inside cards whose title already links the whole card, so keyboard users don't stop on a button that does nothing.

Good to know

  • Inside a [data-card], ACSS's card layer sets every button's colors, so Outline and the other variants don't show there. Set the --btn-* values on the button when a card needs another look.

Reference

Read from the component's JSON, so it's always current.

Loading the reference