Magnolia Template Annotations
npm install @magnolia/template-annotationsMagnolia Template Annotations help making front-end projects editable in Magnolia. It does so by injecting annotations (HTML comments) around your components, which Magnolia's Page Editor transforms into controls for content editors.
``sh`
npm install --save @magnolia/template-annotations
To use TemplateAnnotations, you need to import it:
`javascript`
import { TemplateAnnotations } from '@magnolia/template-annotations';
TemplateAnnotations module provides these functions:
`javascript``
function getAreaCommentString(data: object, templateDefinition: object, componentCount?: number): string;
function getComponentCommentString(data: object, templateDefinition: object): string;
function getPageCommentString(data: object, templateDefinition: object): string;
See the CHANGELOG.md file.