Display Multiple Content Types on New Item Link on Custom List SharePoint 2016

I have three content types attached to a custom list. I would like to display them as a drop-down when clicking on “New Item” similar to what you see when using a Document Library with multiple content types. Does anyone have some sample code that does this? See Screenshot. enter image description here

Thanks, Bismarck