Page
The layout of an app page: a .page holding the navigation, then a .page-wrapper with the page header, the body
and the footer. Direct children go into the body container; the title and pretitle props render a
PageHeader above it, and the navbar and footer blocks take a Navbar and a
Footer.
<twig:Tabler:Page pretitle="Overview" title="Dashboard"> <twig:block name="navbar"> <twig:Tabler:Navbar expand="sm"> <twig:Tabler:Navbar:Toggler target="navbar-menu" /> <twig:Tabler:Navbar:Brand href="/">Acme Admin</twig:Tabler:Navbar:Brand> <twig:Tabler:Navbar:Nav id="navbar-menu" collapse> <twig:Tabler:Navbar:Item href="/" icon="home" active>Dashboard</twig:Tabler:Navbar:Item> <twig:Tabler:Navbar:Item href="/invoices" icon="file-invoice">Invoices</twig:Tabler:Navbar:Item> </twig:Tabler:Navbar:Nav> </twig:Tabler:Navbar> </twig:block> <div class="row row-cards"> <div class="col-sm-6"><twig:Tabler:Card title="Revenue" text="$4,300 this month." /></div> <div class="col-sm-6"><twig:Tabler:Card title="New customers" text="38 this month." /></div> </div> <twig:block name="footer"> <twig:Tabler:Footer transparent copyright="Copyright © 2026 Acme" endLinks="{{ [{label: 'Documentation', href: '/docs'}] }}" /> </twig:block></twig:Tabler:Page><div class="page"> <header class="navbar d-print-none navbar-expand-sm"> <div class="container-xl"> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-menu" aria-controls="navbar-menu" aria-expanded="false" aria-label="Toggle navigation" > <span class="navbar-toggler-icon"></span> </button> <a href="/" class="navbar-brand">Acme Admin</a> <div class="collapse navbar-collapse" id="navbar-menu"> <ul class="navbar-nav"> <li class="nav-item active"> <a class="nav-link" href="/" aria-current="page"> <span class="nav-link-icon"><i class="ti ti-home"></i></span> <span class="nav-link-title">Dashboard</span> </a> </li> <li class="nav-item"> <a class="nav-link" href="/invoices"> <span class="nav-link-icon"><i class="ti ti-file-invoice"></i></span> <span class="nav-link-title">Invoices</span> </a> </li> </ul> </div> </div> </header> <div class="page-wrapper"> <div class="container-xl"> <div class="page-header d-print-none"> <div class="row align-items-center"> <div class="col"> <div class="page-pretitle">Overview</div> <h2 class="page-title">Dashboard</h2> </div> </div> </div> </div> <main class="page-body"> <div class="container-xl"> <div class="row row-cards"> <div class="col-sm-6"> <div class="card"> <div class="card-header"><h3 class="card-title">Revenue</h3></div> <div class="card-body">$4,300 this month.</div> </div> </div> <div class="col-sm-6"> <div class="card"> <div class="card-header"><h3 class="card-title">New customers</h3></div> <div class="card-body">38 this month.</div> </div> </div> </div> </div> </main> <footer class="footer d-print-none footer-transparent"> <div class="container-xl"> <div class="row text-center align-items-center flex-row-reverse"> <div class="col-lg-auto ms-lg-auto"> <ul class="list-inline list-inline-dots mb-0"> <li class="list-inline-item"><a href="/docs" class="link-secondary">Documentation</a></li> </ul> </div> <div class="col-12 col-lg-auto mt-3 mt-lg-0"> <ul class="list-inline list-inline-dots mb-0"> <li class="list-inline-item">Copyright © 2026 Acme</li> </ul> </div> </div> </div> </footer> </div></div>Admin layout with a sidebar
Section titled “Admin layout with a sidebar”Put a vertical navbar in the navbar block: Tabler fixes it to the start edge from its expand breakpoint and
offsets the page wrapper by its width.
<twig:Tabler:Page pretitle="Overview" title="Dashboard"> <twig:block name="navbar"> <twig:Tabler:Navbar vertical expand="sm"> <twig:Tabler:Navbar:Toggler target="sidebar-menu" /> <twig:Tabler:Navbar:Brand href="/">Acme Admin</twig:Tabler:Navbar:Brand> <twig:Tabler:Navbar:Nav id="sidebar-menu" collapse> <twig:Tabler:Navbar:SectionTitle>Overview</twig:Tabler:Navbar:SectionTitle> <twig:Tabler:Navbar:Item href="/" icon="home" active>Dashboard</twig:Tabler:Navbar:Item> <twig:Tabler:Navbar:Item href="/invoices" icon="file-invoice">Invoices</twig:Tabler:Navbar:Item> <twig:Tabler:Navbar:Item href="/customers" icon="users">Customers</twig:Tabler:Navbar:Item> </twig:Tabler:Navbar:Nav> <twig:Tabler:Navbar:Footer> <twig:Tabler:Navbar:Item href="/me" icon="user">Jane Doe</twig:Tabler:Navbar:Item> </twig:Tabler:Navbar:Footer> </twig:Tabler:Navbar> </twig:block> <div class="row row-cards"> <div class="col-md-6"><twig:Tabler:Card title="Revenue" text="$4,300 this month." /></div> <div class="col-md-6"><twig:Tabler:Card title="New customers" text="38 this month." /></div> </div> <twig:block name="footer"> <twig:Tabler:Footer transparent copyright="Copyright © 2026 Acme" endLinks="{{ [{label: 'Documentation', href: '/docs'}] }}" /> </twig:block></twig:Tabler:Page><div class="page"> <aside class="navbar d-print-none navbar-expand-sm navbar-vertical"> <div class="container-fluid"> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#sidebar-menu" aria-controls="sidebar-menu" aria-expanded="false" aria-label="Toggle navigation" > <span class="navbar-toggler-icon"></span> </button> <a href="/" class="navbar-brand">Acme Admin</a> <div class="collapse navbar-collapse" id="sidebar-menu"> <ul class="navbar-nav"> <li class="nav-section-title">Overview</li> <li class="nav-item active"> <a class="nav-link" href="/" aria-current="page"> <span class="nav-link-icon"><i class="ti ti-home"></i></span> <span class="nav-link-title">Dashboard</span> </a> </li> <li class="nav-item"> <a class="nav-link" href="/invoices"> <span class="nav-link-icon"><i class="ti ti-file-invoice"></i></span> <span class="nav-link-title">Invoices</span> </a> </li> <li class="nav-item"> <a class="nav-link" href="/customers"> <span class="nav-link-icon"><i class="ti ti-users"></i></span> <span class="nav-link-title">Customers</span> </a> </li> </ul> </div> <div class="navbar-footer"> <ul class="navbar-nav"> <li class="nav-item"> <a class="nav-link" href="/me"> <span class="nav-link-icon"><i class="ti ti-user"></i></span> <span class="nav-link-title">Jane Doe</span> </a> </li> </ul> </div> </div> </aside> <div class="page-wrapper"> <div class="container-xl"> <div class="page-header d-print-none"> <div class="row align-items-center"> <div class="col"> <div class="page-pretitle">Overview</div> <h2 class="page-title">Dashboard</h2> </div> </div> </div> </div> <main class="page-body"> <div class="container-xl"> <div class="row row-cards"> <div class="col-md-6"> <div class="card"> <div class="card-header"><h3 class="card-title">Revenue</h3></div> <div class="card-body">$4,300 this month.</div> </div> </div> <div class="col-md-6"> <div class="card"> <div class="card-header"><h3 class="card-title">New customers</h3></div> <div class="card-body">38 this month.</div> </div> </div> </div> </div> </main> <footer class="footer d-print-none footer-transparent"> <div class="container-xl"> <div class="row text-center align-items-center flex-row-reverse"> <div class="col-lg-auto ms-lg-auto"> <ul class="list-inline list-inline-dots mb-0"> <li class="list-inline-item"><a href="/docs" class="link-secondary">Documentation</a></li> </ul> </div> <div class="col-12 col-lg-auto mt-3 mt-lg-0"> <ul class="list-inline list-inline-dots mb-0"> <li class="list-inline-item">Copyright © 2026 Acme</li> </ul> </div> </div> </div> </footer> </div></div>Header actions
Section titled “Header actions”The actions block is forwarded to the actions block of the PageHeader: put a PageHeader:Actions in it. The
header is rendered when title, pretitle or actions is set.
<twig:Tabler:Page pretitle="Billing" title="Invoices"> <twig:block name="actions"> <twig:Tabler:PageHeader:Actions> <twig:Tabler:Button variant="primary"><twig:Tabler:Icon name="plus" class="icon" /> New invoice</twig:Tabler:Button> </twig:Tabler:PageHeader:Actions> </twig:block> <twig:Tabler:Card text="No invoice yet." /></twig:Tabler:Page><div class="page"> <div class="page-wrapper"> <div class="container-xl"> <div class="page-header d-print-none"> <div class="row align-items-center"> <div class="col"> <div class="page-pretitle">Billing</div> <h2 class="page-title">Invoices</h2> </div> <div class="col-auto ms-auto"> <div class="btn-list"> <button type="button" class="btn btn-primary"> <i class="ti ti-plus icon"></i> New invoice </button> </div> </div> </div> </div> </div> <main class="page-body"> <div class="container-xl"> <div class="card"><div class="card-body">No invoice yet.</div></div> </div> </main> </div></div>Container
Section titled “Container”container sets the container-* of the header and the body: xl by default, sm, md, lg, xxl, fluid, or
Tabler’s narrower narrow, tight and slim. fluid adds layout-fluid to the page, which turns every container of
the page full-width, those of the navbar and the footer included.
<twig:Tabler:Page title="Reports" fluid>…</twig:Tabler:Page>Composed
Section titled “Composed”Direct children fill the content block, inside the body: to build the wrapper yourself, replace the wrapper block
with a Page:Wrapper. There is no Page:Header: wrap a PageHeader in a container. Here the whole page is fluid.
<twig:Tabler:Page> <twig:block name="wrapper"> <twig:Tabler:Page:Wrapper> <div class="container-fluid"> <twig:Tabler:PageHeader pretitle="Reports" title="Sales" /> </div> <twig:Tabler:Page:Body container="fluid"> <twig:Tabler:Card title="This quarter" text="$12,800 in 214 orders." /> </twig:Tabler:Page:Body> <twig:Tabler:Footer container="fluid" copyright="Copyright © 2026 Acme" /> </twig:Tabler:Page:Wrapper> </twig:block></twig:Tabler:Page><div class="page"> <div class="page-wrapper"> <div class="container-fluid"> <div class="page-header d-print-none"> <div class="row align-items-center"> <div class="col"> <div class="page-pretitle">Reports</div> <h2 class="page-title">Sales</h2> </div> </div> </div> </div> <main class="page-body"> <div class="container-fluid"> <div class="card"> <div class="card-header"><h3 class="card-title">This quarter</h3></div> <div class="card-body">$12,800 in 214 orders.</div> </div> </div> </main> <footer class="footer d-print-none"> <div class="container-fluid"> <div class="row text-center align-items-center flex-row-reverse"> <div class="col-12 col-lg-auto mt-3 mt-lg-0"> <ul class="list-inline list-inline-dots mb-0"> <li class="list-inline-item">Copyright © 2026 Acme</li> </ul> </div> </div> </div> </footer> </div></div>The header, body and footer blocks can also be replaced one by one, for instance the body block with a
Page:Body of another container, or two of them.
Centered page
Section titled “Centered page”center adds page-center, which centers the children of the page vertically, such as the card of a sign-in page.
The wrapper fills the page, so replace the wrapper block with the centered content.
<twig:Tabler:Page center style="min-height: 20rem"> <twig:block name="wrapper"> <div class="container container-tight py-4"> <twig:Tabler:Card title="Sign in" text="Welcome back to Acme." /> </div> </twig:block></twig:Tabler:Page><div class="page page-center" style="min-height: 20rem"> <div class="container container-tight py-4"> <div class="card"> <div class="card-header"><h3 class="card-title">Sign in</h3></div> <div class="card-body">Welcome back to Acme.</div> </div> </div></div>Layout options on <body> and <html>
Section titled “Layout options on <body> and <html>”Some of Tabler’s layout options are set on <body> or <html>, which a component cannot reach: set them in the base
template of your app. The data-bs-* attributes on <html> are also what Tabler’s theme settings script
(tabler-theme.js) writes, from a choice stored in localStorage.
| Option | Where | Effect |
|---|---|---|
| Boxed | <body class="layout-boxed"> or <html data-bs-layout="boxed"> |
Centers the page in a frame, which a vertical navbar stays inside |
| Fluid | The fluid prop, <body class="layout-fluid"> or <html data-bs-layout="fluid"> |
Full-width containers |
| Navigation position | <html data-bs-navbar-position="vertical"> or "combined" |
Which navbar shows when the page renders both: see below |
| Sticky navbar | <html data-bs-navbar="sticky"> |
Keeps the horizontal navbar at the top; or wrap it in a .sticky-top |
| Floating navigation | <html data-bs-navbar-style="floating"> |
Same as the floating prop of Navbar, on whichever navbar shows |
| Navigation theme | <html data-bs-navbar-theme="dark"> or "primary" |
Colors whichever navbar shows; or data-bs-theme="dark" on the Navbar |
| Folded sidebar | <html data-bs-sidebar="folded"> or "folded-hover" |
Same as the folded prop of Navbar, on every vertical navbar |
| Right to left | <html dir="rtl"> and the tabler.rtl.css stylesheet |
Mirrors the layout |
Tabler also styles a skip link, for the start of the <body>, past the navigation to the page body. To give the body
the id it points at, replace the body block with a Page:Body, and render the children in it with
outerBlocks:
{# in <body>: <a href="#content" class="visually-hidden-focusable skip-link">Skip to main content</a> #}<twig:Tabler:Page title="Dashboard"> <twig:block name="body"> <twig:Tabler:Page:Body id="content">{{ block(outerBlocks.content) }}</twig:Tabler:Page:Body> </twig:block> …</twig:Tabler:Page>Vertical and horizontal navbars together
Section titled “Vertical and horizontal navbars together”A page can render both navbars, the vertical one first. Since Tabler 1.5, the vertical one is then hidden unless
<html> has data-bs-navbar-position="vertical", which hides the horizontal one instead, or "combined", which keeps
both on screen:
{# <html data-bs-navbar-position="combined"> #}<twig:Tabler:Page title="Dashboard"> <twig:block name="navbar"> <twig:Tabler:Navbar vertical expand="lg">…</twig:Tabler:Navbar> <twig:Tabler:Navbar>…</twig:Tabler:Navbar> </twig:block> …</twig:Tabler:Page>Overlapping navbar
Section titled “Overlapping navbar”For the navbar-overlap layout, where the navbar background runs behind the page header, add the class to a dark
horizontal navbar: <twig:Tabler:Navbar class="navbar-overlap" data-bs-theme="dark">, and text-white to the page
header, through the header block.
| Prop | Type | Default | Description |
|---|---|---|---|
title |
string? | null |
Page title, rendered with PageHeader |
pretitle |
string? | null |
Small overline above the title, rendered with PageHeader |
container |
string | 'xl' |
Suffix of the container-* of the header and the body |
fluid |
bool | false |
Full-width containers in the whole page (layout-fluid) |
center |
bool | false |
Centers the children of the page vertically (page-center), e.g. a sign-in card |
Other attributes go to the root <div class="page">.
Sub-components
Section titled “Sub-components”| Component | Renders |
|---|---|
Page:Wrapper |
<div class="page-wrapper"> |
Page:Body |
<main class="page-body"> around a <div class="container-xl"> |
Page:Body props
Section titled “Page:Body props”| Prop | Type | Default | Description |
|---|---|---|---|
container |
string | 'xl' |
Suffix of the inner container-* |
tag |
string | 'main' |
main, the main landmark of the page, or div when the page already has one |
Other attributes go to the <main>, such as class="page-body-card" for a body on a surface background.
Blocks
Section titled “Blocks”| Block | Default |
|---|---|
navbar |
Nothing: put a Navbar in it, or a vertical one then a horizontal one |
wrapper |
The .page-wrapper with header, body and footer |
header |
A PageHeader with pretitle, title and actions in a container, when one of them is set |
actions |
Nothing: put a PageHeader:Actions in it |
body |
A <main class="page-body"> and its container around content |
content |
The direct children, inside the body container |
footer |
Nothing: put a Footer in it |
