Riksdagsmonitor Intelligence Platform - v0.7.19
    Preparing search index...

    Interface TemplateSection

    A pluggable HTML section inserted into the article body.

    New content types (risk indicators, trend charts, pull quotes, etc.) can be added without modifying the core template — just append a TemplateSection to the sections array in ArticleData.

    interface TemplateSection {
        id: string;
        html: string;
        className?: string;
    }
    Index

    Properties

    Properties

    id: string

    Unique identifier used as the HTML element id.

    html: string

    Pre-rendered HTML string for this section. Must be safe to embed directly (callers are responsible for escaping).

    className?: string

    Optional CSS class name(s) added to the wrapper <div>. Defaults to 'article-section' when omitted.