tg2-card / tg2Card
<tg2-card> | <a> | <button> | <div>
The host element decides the form. Use <tg2-card> for a static container, and tg2Card when the card is itself the link or button, or when a <div> needs interactive.
<tg2-card>
tg2Card
<div>
interactive
theme
tg2-light | tg2-dark | tg-light | tg-dark
radius
small | medium | large | extra-large
The pixel value follows the theme, and so does the default: medium under tg2-light / tg2-dark, large under tg-light / tg-dark. The example omits radius while it matches the current theme's default.
medium
tg2-light
tg2-dark
large
tg-light
tg-dark
background
white | grey
bordered
boolean
An <a> or <button> host is interactive already, so this input applies to a <div> host you have made activatable yourself with role, tabindex and keyboard handlers — see Interactive.
<a>
<button>
role
tabindex
<tg2-card bordered> <div class="listing-card__body"> Card content </div> </tg2-card>