Summary
Content container with header, body, and footer slots.
Usage
<StxCard>
<template #header>
<h3>Card Title</h3>
</template>
<p>Card body content</p>
<template #footer>
<button>Action</button>
</template>
</StxCard>
<StxCard variant="outline" hoverable>
<StxImage src="/photo.jpg" slot="cover" />
<h3>Photo Card</h3>
<p>With cover image</p>
</StxCard>Props
variant:elevated|outline|filled|ghost(default:elevated)hoverable— hover shadow/border effectpadding—none|sm|md|lg(default:md)radius—none|sm|md|lg(default:md)
Slots
- default — body content
#header— card header with bottom border#footer— card footer with top border#cover— full-width image above header