Added general content blocks
This commit is contained in:
15
src/components/markdoc/blocks/general/TableWrapper.astro
Normal file
15
src/components/markdoc/blocks/general/TableWrapper.astro
Normal 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>
|
||||
Reference in New Issue
Block a user