0.7.2

Card0

Source code

The Card component provides a versatile container for displaying related content. It uses semantic HTML and ensures proper heading structure and content organization.

Badge
Image
Content
---
import { Card0 } from '@yatoday/astro-ui/astro';
---
<Card0>
  <Fragment slot="badge">Badge</Fragment>
  <Fragment slot="image">Image</Fragment>

  Content
</Card0>

Props

PropTypeDefaultDescription
asstringarticleHTML tag name for the wrapper
classes.containerstring-Additional CSS classes to apply to the card wrapper
classes.badgestring-Additional CSS classes to apply to the badge container