import {PageHeader} from '@primer/react/drafts'
variant="large"| Name | Type | Default | Description |
|---|---|---|---|
| aria-label | string | undefined | A unique label for the rendered main landmark | |
| hidden | | boolean | { narrow?: boolean regular?: boolean wide?: boolean } | false | Whether the content is hidden. |
| sx | SystemStyleObject | ||
| as | React.ElementType | "div" | The underlying element to render — either a HTML element name or a React component. |
| Name | Type | Default | Description |
|---|---|---|---|
| hidden | | boolean | { narrow?: boolean regular?: boolean wide?: boolean } | false | Whether the content is hidden. |
| sx | SystemStyleObject |
| Name | Type | Default | Description |
|---|---|---|---|
| href | string | The URL to link to. | |
| hidden | | boolean | { narrow?: boolean regular?: boolean wide?: boolean } | `{ narrow: false regular: true wide: true }` | Whether the parent link is hidden. |
| sx | SystemStyleObject |
| Name | Type | Default | Description |
|---|---|---|---|
| hidden | | boolean | { narrow?: boolean regular?: boolean wide?: boolean } | false | Whether the content is hidden. |
| sx | SystemStyleObject |
| Name | Type | Default | Description |
|---|---|---|---|
| hidden | | boolean | { narrow?: boolean regular?: boolean wide?: boolean } | false | Whether the content is hidden. |
| sx | SystemStyleObject |
| Name | Type | Default | Description |
|---|---|---|---|
| hidden | | boolean | { narrow?: boolean regular?: boolean wide?: boolean } | false | Whether the content is hidden. |
| variant | | 'subtitle' | 'medium' | 'large' | { narrow?: | 'subtitle' | 'medium' | 'large' regular?: | 'subtitle' | 'medium' | 'large' wide?: | 'subtitle' | 'medium' | 'large' } | medium | Default title (medium) is the most common page title size. Use for static titles in most situations. Large variant should be used for user-generated content such as issues, pull requests, or discussions. Subtitle variant can be used when a PageHeader.Title is already present in the page, such as in a SplitPageLayout. |
| sx | SystemStyleObject |
| Name | Type | Default | Description |
|---|---|---|---|
| hidden | | boolean | { narrow?: boolean regular?: boolean wide?: boolean } | false | Whether the content is hidden. |
| sx | SystemStyleObject |
| Name | Type | Default | Description |
|---|---|---|---|
| hidden | | boolean | { narrow?: boolean regular?: boolean wide?: boolean } | false | Whether the content is hidden. |
| sx | SystemStyleObject |
| Name | Type | Default | Description |
|---|---|---|---|
| hidden | | boolean | { narrow?: boolean regular?: boolean wide?: boolean } | false | Whether the content is hidden. |
| sx | SystemStyleObject | ||
| as | React.ElementType | "h2" | The underlying element to render — either a HTML element name or a React component. |
| Name | Type | Default | Description |
|---|---|---|---|
| hidden | | boolean | { narrow?: boolean regular?: boolean wide?: boolean } | false | Whether the content is hidden. |
| sx | SystemStyleObject |
| Name | Type | Default | Description |
|---|---|---|---|
| hidden | | boolean | { narrow?: boolean regular?: boolean wide?: boolean } | false | Whether the content is hidden. |
| sx | SystemStyleObject |
| Name | Type | Default | Description |
|---|---|---|---|
| hidden | | boolean | { narrow?: boolean regular?: boolean wide?: boolean } | false | Whether the content is hidden. |
| sx | SystemStyleObject |
| Name | Type | Default | Description |
|---|---|---|---|
| hidden | | boolean | { narrow?: boolean regular?: boolean wide?: boolean } | false | Whether the content is hidden. |
| sx | SystemStyleObject |
| Name | Type | Default | Description |
|---|---|---|---|
| aria-label | string | The aria-label attribute for the navigaton component when it is rendered as a "nav" element. | |
| aria-labelledby | string | The aria-labelledby attribute for the navigaton component when it is rendered as a "nav" element. | |
| as | React.ElementType | "div" | The HTML element used to render the navigation. |
| hidden | | boolean | { narrow?: boolean regular?: boolean wide?: boolean } | false | Whether the content is hidden. |
| sx | SystemStyleObject |