Layout
Page
Page-level building blocks: tk:page, a titled page with a side menu of sections (a settings area, for instance), and tk:page.error, the content of an error page.
Settings
Nothing to show
A titled page with a vertical menu on the left, 220px wide, the current section highlighted, and the content beside it. Below md, the menu turns into a select at the top that navigates when changed.
An error page #
A large, faint "404" behind the text "We couldn't find that page" and a short explanation, with a button back to the home page. The texts change with the code (400, 401, 403, 419, 429, 500, 502, 503, 504) and are translated.
We couldn't find that page
Nothing to show
Actions and breakpoint #
The actions slot sits at the end of the title row. breakpoint sets from which width the menu is a side column; with 2xl it stays a select at this width.
Billing
Nothing to show
Error codes #
The texts change with the code (400, 401, 403, 419, 429, 500, 502, 503, 504) and are translated. :home-url=false removes the button; size sets the text size.
This page isn't available to you
Something went wrong on our end
We'll be right back
Nothing to show
Custom texts and content #
title and description replace the default texts, and the slot adds content between the texts and the home button.
Your trial has ended
Nothing to show
Customization #
Classes on tk:page go to its section; menu:, nav:, select: and area: reach the menu column, the nav, the select and the content area.
Team
Nothing to show
Reference
tk:page
tk:page.error
tk:page
| Prop | Type | Default | Description |
|---|---|---|---|
menu |
array | null |
The section links, as tk:nav items (label, href or route, icon...). |
breakpoint |
string | md |
From this breakpoint up the menu is a side column; below it, a select. sm, md, lg, xl or 2xl. |
Also accepts the props of tk:section (title, subtitle, description, size...).
Slots
| Slot | Description |
|---|---|
| default | The content beside the menu. |
header, actions |
Content in the header after the description (the section's append), and actions at the end of the title row. |
Prefixes
| Prefix | Goes to |
|---|---|
container: |
The row holding the menu and the content. |
menu:, nav:, select: |
The menu column, the nav in it, and the select shown on small screens. |
area: |
The content area. |
tk:page.error
| Prop | Type | Default | Description |
|---|---|---|---|
code |
int | string | null |
The HTTP status, shown large behind the text and choosing the default texts. |
title |
string | by code | The heading. |
description |
string | by code | The explanation under it. |
homeUrl |
string | false | the home route, or / |
The target of the "Go back home" button. false removes the button. |
size |
string | md |
The text size. |
Slots
| Slot | Description |
|---|---|
| default | Content between the texts and the home button. |
Prefixes
| Prefix | Goes to |
|---|---|
code:, content:, home: |
The large code, the texts and the home button. |
Customization
Classes and attributes on tk:page go to its section. To reach the parts, prefix the attribute (listed in the Reference above).
Accessibility
The section menu of tk:page is a <nav> labelled "Sections" (translated). Below the breakpoint it is replaced by a select with the same accessible name, which navigates to the chosen section when it changes (with Livewire.navigate inside Livewire). The large code on the error page is hidden from screen readers.