0.9.0

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>

Svelte Usage

<script>
  import { Card0 } from '@yatoday/astro-ui/svelte';
</script>

<Card0>
  <div slot="badge">Badge</div>
  <div slot="image">Image</div>

  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