Added general content blocks

This commit is contained in:
2026-09-23 12:44:07 +02:00
parent 6bd917e81b
commit 9ecea06209
27 changed files with 474 additions and 21 deletions

View File

@@ -0,0 +1,15 @@
---
import type { TableVariant } from '@/lib/constants/blocks/table'
type Props = {
variant?: TableVariant
caption?: string
}
const { variant = 'default', caption } = Astro.props
---
<figure class:list={['table-wrapper', `table-wrapper--${variant}`]}>
<slot />
{caption && <figcaption>{caption}</figcaption>}
</figure>