Heading
A semantic heading component with auto-sizing, accent colors, and tracking control. Renders h1–h6 based on the level prop with appropriate sizing.
Live Sandbox
This is a hydrated playground for the component. Toggle "Live preview" on the block below to swap the static HTML render for a real Livewire instance — every prop in the component's sandbox schema becomes an editable form field inside the iframe, so you can try different prop combinations live without writing any local code.
Section title
Basic Usage
Heading 1 (2xl)
Heading 2 (xl)
Heading 3 (lg)
Heading 4 (base)
Heading 5 (sm)
Explicit Sizing
Override the auto-size with the size prop.
Large heading 2
Small heading 3
Accent Color
Use the accent prop to apply the primary theme color.
Accent Heading
Accent Subheading
Tracking
Control letter spacing with the tracking prop.
Tight Tracking
Page Layout Example
Welcome to WireKit
A component library for Laravel Livewire.
Auto-Sizing
When size is not provided, the heading auto-sizes based on level:
| Level | Auto Size |
|---|---|
| 1 | 2xl |
| 2 | xl |
| 3 | lg |
| 4 | base |
| 5, 6 | sm |
Props
| Prop | Type | Default | Description |
|---|---|---|---|
level |
int|null | null |
Heading level 1–6 (renders h1–h6). Defaults to 2 |
size |
string|null | null |
Font size: sm, base, lg, xl, 2xl, 3xl. Auto-sized from level when null |
accent |
bool | false |
Use primary color |
tracking |
string | 'normal' |
Letter spacing: normal, tight, tighter |
as |
string|null | null |
Override element (defaults to h1–h6 based on level) |
scope |
string|null | null |
Scoped personalization name |
Keyboard Interaction
This component is purely presentational and does not respond to keyboard input.
Design Tokens
| Token | Used for |
|---|---|
--font-wk-sans |
Font family |
--font-wk-heading-weight |
Font weight |
--font-wk-heading-line-height |
Line height (fallback: 1.25) |
--text-wk-sm through --text-wk-3xl |
Font sizes |
--color-wk-text |
Default color |
--color-wk-accent-text |
Accent color |