Billing
Invoices are issued on the first day of each month and sent to the account owner.
A section title
import { Heading, Text } from "@senvenli/react/display";
import { Stack } from "@senvenli/react/layout";
export default function Example() {
return (
<Stack space="space-100">
<Heading level={2}>Billing</Heading>
<Text elementType="p" tone="subtle">
Invoices are issued on the first day of each month and sent to the account owner.
</Text>
</Stack>
);
}import { Heading } from "@senvenli/react/display";Examples
Levels
Each level has its default size; follow the page structure and never skip a level.import { Heading } from "@senvenli/react/display";
import { Stack } from "@senvenli/react/layout";
export default function Example() {
return (
<Stack space="space-150">
<Heading level={2}>Customers</Heading>
<Heading level={3}>Recent orders</Heading>
<Heading level={4}>Shipping address</Heading>
<Heading level={5}>Delivery notes</Heading>
</Stack>
);
}Size apart from level
When the outline level looks too large or too small, change `size`, not the level.Order summary
$48,920 this month
import { Heading } from "@senvenli/react/display";
import { Stack } from "@senvenli/react/layout";
export default function Example() {
return (
<Stack space="space-150">
{/* A side panel's title is an h2 in the outline, but reads at card-title size. */}
<Heading level={2} size="heading-small">
Order summary
</Heading>
<Heading level={2} size="heading-xxlarge">
$48,920 this month
</Heading>
</Stack>
);
}Guidelines
When to use it
- Naming a page, a section or a group of content.
Use something else when
- The words are body copy, labels or captions. Text
Do and avoid
- One level-1 heading per page; never skip levels for looks, use
sizeinstead.
Accessibility
Built in
- Renders the real h1–h6 element for
level, so the outline stays correct.
You provide
- Levels that follow the page structure.
API reference
Heading
| Prop | Type | Default | Description |
|---|---|---|---|
levelRequired | HeadingLevel | – | The place in the document outline (h1–h6). |
size | HeadingSize | – | The look, set apart from the level. |
childrenRequired | React.ReactNode | – | |
id | string | – |
levelRequiredHeadingLevelThe place in the document outline (h1–h6).
sizeHeadingSizeThe look, set apart from the level.
display-*is for a marketing hero and section titles only.childrenRequiredReact.ReactNodeidstring