1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-07 03:42:27 +04:00
Files
tabler/shared/layouts/ProseLayout.astro

31 lines
808 B
Plaintext

---
// card.card-lg > card-body.prose wrapper around the page content).
import DefaultLayout from './DefaultLayout.astro'
import Card from '@ui/Card.astro'
import CardBody from '@ui/CardBody.astro'
interface Props {
title?: string
/** page-header — the title in the page header */
pageHeader?: string
/** page-menu — active menu entry, passed through to DefaultLayout */
pageMenu?: string
}
const { title, pageHeader, pageMenu } = Astro.props
---
<DefaultLayout title={title} pageHeader={pageHeader} pageMenu={pageMenu}>
<!-- BEGIN PROSE -->
<div class="row justify-content-center">
<div class="col-lg-10 col-xl-9">
<Card size="lg">
<CardBody class="prose">
<slot />
</CardBody>
</Card>
</div>
</div>
<!-- END PROSE -->
</DefaultLayout>