Theme
Heading
Standalone semantic heading export for starter-kit typography
Start Here
Start from the smallest working snippet, then move to interactive examples and the full API contract below.
Styled quick start
Copy this entrypoint first. It includes the imports required to get the component on screen.
Import options
Root package
ts
import { Heading } from '@dryui/ui'Per-component subpath
ts
import { Heading } from '@dryui/ui/heading'Customize
Use the interactive examples to see common variants, states, and composition patterns before building your own.
Scale
Starter kit card title
Workspace summary
Use the standalone Heading export when you want starter-kit typography without the Typography namespace.
svelte
<script lang="ts">
import { Card, Heading, Text } from '@dryui/ui';
</script>
<Card.Root>
<Card.Content>
<Heading level={3}>Workspace summary</Heading>
<Text as="p" color="secondary" size="sm" style="line-height: 1.6">Use the standalone Heading export when you want starter-kit typography without the Typography namespace.</Text>
</Card.Content>
</Card.Root>Compose
The full API contract lives here: props, CSS variables, and the public data attributes you can target when styling.
| Prop | Type | Default | Required | Bindable |
|---|---|---|---|---|
level | 123456 | 2 | — | — |
children | Snippet | — | ✓ | — |
Forwards <h*> attributes via rest props. Common examples: id, style, aria-label.