PinSectionProps
Props for PinSection.
This is an interface exported by @mapcairn/map, checked against version 0.2.0.
Signature
import type { PinSectionProps } from "@mapcairn/map";
interface PinSectionProps
Properties
children
readonly children?: ReactNode;
The pin's details, such as the pin card, shown under the note.
hasPin
readonly hasPin: boolean;
Whether a pin is on the map.
headingLevel
readonly headingLevel?: HeadingLevel;
The heading level. Defaults to 3, below the sheet's h2 title.
headingRef
readonly headingRef?: Ref<HTMLHeadingElement>;
Receives the heading, so the sheet can focus it.
onDropPin
readonly onDropPin: () => void;
Drops a pin at the centre of the map.
See also
Source: packages/map/src/panels/PinSection/PinSection.tsx:11