Heading

Headings at levels 1 to 6, with no outer margin: the layout around them owns the spacing.

Example

Level one

Level two

Level three

tsx
<Stack gap="sm">
  <Heading level={1}>Level one</Heading>
  <Heading level={2}>Level two</Heading>
  <Heading level={3}>Level three</Heading>
</Stack>

Usage

Pages are built on the server: import the tags from @dash/server and return the tree. The browser runtime draws it.
tsx
import { Heading, Stack } from "@dash/server";

Props

HeadingProps

Prop
Type
Description
level1 | 2 | 3 | 4 | 5 | 6
PreviousSeparator
NextText
On this page