0.10.8

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
Badge Top Right
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
badgestring-badge slot contents
badgeTopRightstring-badgeTopRight slot contents
badgeBottomRightstring-badgeBottomRight slot contents
badgeBottomLeftstring-badgeBottomLeft slot contents
classes.containerstring-Additional CSS classes to apply to the card wrapper
classes.badgestring-Additional CSS classes to apply to the badge container
classes.badgeTopRightstring-Additional CSS classes to apply to the badgeTopRight container
classes.badgeBottomRightstring-Additional CSS classes to apply to the badgeBottomRight container
classes.badgeBottomLeftstring-Additional CSS classes to apply to the badgeBottomLeft container