1 2 3 4 5 6 7 8
<section class="card"> <h2>{title}</h2> <slot /> </section> <style> .card { border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 8px; padding: 0.25rem 1rem; margin: 1rem 0; } </style>