SectionProps
Props for Section.
This is an interface exported by @mapcairn/map, checked against version 0.2.0.
Signature
import type { SectionProps } from "@mapcairn/map";
interface SectionProps extends Omit<HTMLAttributes<HTMLElement>, "children" | "title">
Properties
children
readonly children?: ReactNode;
The section's content, below the heading.
headingLevel
readonly headingLevel?: HeadingLevel;
The heading level. Defaults to 3, below the sheet's h2 title.
headingRef
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
readonly title: string;
The heading text. It also names the section.