{% load design_components %}
{% if component_label %}

{{ component_label }}

{% else %}

{{ component_info.name }}

{% endif %}
{% if active_variant %}
{% dds__badge label="Variant" variant="info" %}

{{ active_variant.label }}

{% if variant_description %}
{{ variant_description }}
{% endif %} {% if variant_preview_url %}

Preview

{% dds__button label="Open in sandbox" icon="external-link" icon_only=True variant="ghost" size="sm" href=variant_preview_url %}
{% endif %} {% if variant_signature.minimal %} {% dds__code_block code=variant_signature.minimal language="django" %} {% endif %}
{% else %}

Description

{% if component_description %}
{{ component_description }}
{% else %}

No description provided. Add a docstring to the component class.

{% endif %}
{% endif %}