poi
A single point of interest — one platform-built place (a `PoiRow`), picked in the editor's place search.
A single point of interest — one platform-built place (a PoiRow), picked
in the editor’s place search. The platform owns the row’s content; there is
nothing to configure beyond the head. Usable standalone or as a list item
(list.of(poi({ label: "Restaurant" }), { label: "Restaurants" })).
Import from @homepages/template-kit.
Signature
Section titled “Signature”function poi(opts: PoiOptions): PoiSlotDefParameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
opts |
PoiOptions |
required |
Returns
Section titled “Returns”PoiSlotDef
Example
Section titled “Example”import { poi } from "@homepages/template-kit";
poi({ label: "Nearest station", placeholder: "Search places…" });