Headline
A heading with a configurable semantic level.
as chooses an HTML element from h1 to h6. Match the level to the page hierarchy.
Live example
Headline
Example controls
Usage
import { Headline } from '@prosazhin/pbcomponents';
<Headline as='h1'>Headline</Headline>;Component API
| Prop | Type / variants | Purpose | Default |
|---|---|---|---|
as | 'h1' … 'h6'h1 · h2 · h3 · h4 · h5 · h6 | HTML heading level. | h1 |
children | string | Component content. | — |
className | string | Class of the root element. | — |
Native HTML attributes are accepted where the component renders the corresponding element. className props only affect styling.