{% extends 'django_cotton_gallery/base.html' %} {% load i18n %} {% block title %}{% trans "Annotation builder" %}{% endblock %} {% block content %}

{% trans "Annotation builder" %}

{% blocktranslate %}Compose a component's whole annotation block interactively — the @description, @strict / @ignore-unused flags, @props, @slots and @trigger — plus the matching <c-vars> line. Fill the fields and copy the result into a new component template.{% endblocktranslate %}

{# ── Form (left): component-level fields, then props, then slots ── #}
{# ── Component-level annotations (once) ── #}

{% trans "Component" %}

{% trans "One-line summary — the @description annotation." %}

{% trans "For modals/drawers — the element that opens the component (@trigger)." %}

{# ── Props (0..n) ── #}

{% trans "Props" %}

{# ── Slots (0..n) ── #}

{% trans "Slots" %}

{# ── Live preview pane (right): @prop block + line ── #}
{% comment %} Entry template — cloned each time the user clicks "Add prop". `