Components
You’re browsing the documentation for an old version of Flux. Go to v2.x ->

Heading

A consistent heading and subheading component for your application.

User profile
This information will be displayed publicly.
Copy to clipboard
<flux:heading>User profile</flux:heading><flux:subheading>This information will be displayed publicly.</flux:subheading>

Sizes

Flux offers three different heading sizes that should cover most use cases in your app.

Default
14px · Use liberally—think input and toast labels.
Large
16px · Use sparingly—think modal and card headings.
Extra large
24px · Use rarely—think hero text.
<flux:heading>Default</flux:heading><flux:heading size="lg">Large</flux:heading><flux:heading size="xl">Extra large</flux:heading>

Heading level

Control the heading level: h1, h2, h3, that will be used for the heading element. Without a level prop, the heading will default to a div.

User profile

This information will be displayed publicly.
<flux:heading level="3">User profile</flux:heading><flux:subheading>This information will be displayed publicly.</flux:subheading>

Leading subheading

Subheadings can be placed above headings for a more interesting arrangment.

Year to date
$7,532.16
15.2%
<flux:card size="sm">    <flux:subheading>Year to date</flux:subheading>    <flux:heading size="xl" class="mb-1">$7,532.16</flux:heading>    <div class="flex items-center gap-2">        <flux:icon.arrow-trending-up variant="micro" class="text-green-600 dark:text-green-500" />        <span class="text-sm text-green-600 dark:text-green-500">15.2%</span>    </div></flux:card>
Copyright © 2025 Wireable LLC ·Terms of Service
Built with by
Caleb Porzio and Hugo Sainte-Marie