Layout
Section
A titled block of a page: a title with an optional icon and badge, a subtitle, a description, actions at the end of the title row, a line, and the content under it. Forms, modals and settings pages use it for their layout.
Nothing to show
A <section> with "Profile" in the heading style, "This information is public." in muted text under it, a line, and the two fields with even spacing.
Actions, icon and badge #
The icon before the title, a "Beta" badge after it, and the "New key" button at the end of the title row. The line under the header is left out when the content is a card or a table, which bring their own border.
API keys
|
Name
|
Created
|
|---|---|
|
Production
|
Mar 2, 2026
|
|
Staging
|
Apr 18, 2026
|
Nothing to show
Content without a line #
A description paragraph under the subtitle, and no line between the header and the content.
Nothing to show
Description and lists #
description adds a paragraph under the subtitle; an array subtitle renders as a bulleted list. content is placed before the slot.
Password
Nothing to show
Forcing the line #
By default the line is drawn when the header has a title with details, or actions, and there is content. separator draws it anyway.
Members
Nothing to show
Sizes #
size sets the text sizes and the spacing, from xs to 3xl.
Size sm
Size md
Size lg
Nothing to show
Prepend and append #
prepend goes before the title and append after the description, inside the header.
Release 2.4
Read the changelogNothing to show
Customization #
Classes go to the <section>; title:, subtitle:, header:, content: and other prefixes reach the parts.
Billing
Nothing to show
Reference
tk:section
| Prop | Type | Default | Description |
|---|---|---|---|
title |
string | slot | null |
The title, translated. |
subtitle |
string | array | slot | null |
Muted text under the title, translated. An array renders as a bulleted list. |
description |
string | slot | null |
A paragraph under the subtitle. |
actions |
slot | null |
Controls at the end of the title row. |
prepend |
slot | null |
Content before the title. |
append |
slot | null |
Content after the description, in the header. |
content |
string | slot | null |
Content before the slot. |
separator |
bool | auto | The line between the header and the content. By default it is drawn when the header has a title with other details, or actions, and there is content; never above a card or a table. |
size |
string | md |
xs, sm, md, lg, xl, 2xl or 3xl. Sets the text sizes and the spacing. |
icon and badge on the tag go to the title.
Slots
| Slot | Description |
|---|---|
| default | The content. |
title, subtitle, description, actions, prepend, append, content |
As the props of the same name. |
Prefixes
| Prefix | Goes to |
|---|---|
header: |
The header row. |
title: |
The title, a tk:heading (title:level="2", title:size...). |
subtitle: |
The subtitle. |
container:, list: |
The element around the title and texts, and the list they are in. |
actions: |
The actions area. |
separator: |
The line. |
content: |
The content area. |
Customization
Classes and attributes on the tag go to the <section>. To reach the parts, prefix the attribute (listed in the Reference above).
Nothing to show
Accessibility
A native <section>. The title is styled as a heading but rendered as a paragraph unless title:level is set: give it a level that fits the page outline (title:level="2") so screen reader users can navigate to it.
Behavior notes
- Without a title, details or actions, no header and no line are rendered: only the content. A
prependalone does not render the header. - A string
contentis translated.