{% comment %} MD3 switch (styled in forms/fields.css: 52x32dp track, growing handle) in a plain label row — no pill container. Help text and errors render as MD3 supporting text below. Django's own widget draws the box, so it carries what the form declares; the help text and errors take Django's ids, which the box's aria-describedby points at. {% endcomment %} {% load phoxtail_core_tags %}
{% if supporting == "errors" %}
{% for error in field.errors %}{{ error }}{% endfor %}
{% elif supporting == "help" %}
{{ help_text|default:field.help_text }}
{% endif %}