Etch component
CTA 1
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
- CTA Group 1
- Intro 1
- Person Card 1
- Hero 1
- Job Card 1
- CTA Band 1
- Reviews 1
- Hero 2
- Floating Actions 1
- Price Card 1