How to use a custom renderer for a form element?

Use \Magento\Framework\Data\Form\Element\AbstractElement::setRenderer() method:

You can also set a custom renderer with the frontend_model tag.

See also: