Files
website/src/components/markdoc/blocks/general/TableWrapper.astro
2026-09-23 12:44:07 +02:00

16 lines
330 B
Plaintext

---
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>