ESP32 Analog Output Example needed

Hi!
I’m trying to output an analog voltage from an ESP32. It has 2 DAC channels, but I can not find any info on how to use them. (https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/dac.html ) Could anyone post an esphome example?
Thanks
James

This perhaps? https://esphome.io/components/output/custom.html