# SectionProps

Props for [`Section`](https://docs.mapcairn.com/api/map/Section.md).

This is an interface exported by `@mapcairn/map`, checked against version 0.2.0.

## Signature

```ts
import type { SectionProps } from "@mapcairn/map";
 
interface SectionProps extends Omit<HTMLAttributes<HTMLElement>, "children" | "title">
```

## Properties

### children

```ts
readonly children?: ReactNode;
```

The section's content, below the heading.

### headingLevel

```ts
readonly headingLevel?: HeadingLevel;
```

The heading level. Defaults to 3, below the sheet's h2 title.

### headingRef

```ts
readonly headingRef?: Ref<HTMLHeadingElement>;
```

Receives the heading element. The heading takes focus from script
(`tabIndex` -1), so the sheet can move focus to a section it opens on.

### title

```ts
readonly title: string;
```

The heading text. It also names the section.

## See also

- [`HeadingLevel`](https://docs.mapcairn.com/api/map/HeadingLevel.md)

Source: [packages/map/src/panels/Section/Section.tsx:19](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/panels/Section/Section.tsx#L19)
