You have a couple options:
- Use a TH LED, installed at the appropriate height. For best results, use an
LED spacer to hold it the appropriate heght. Height is measured from the bottom of the LED to the top of the board.
- Use an SMD LED with a suitable board-mount lightpipe.
here are some vertical options, Lumex make a bunch of other shapes, as do other manufacturers.
- Use a panel-mount lens and lightpipe assembly.
Here are some lenses, if you look at the datasheets you'll find there are lightpipes that snap into the rear of some of them to conduct the light into the lens from an LED mounted further back in the enclosure. You can also use these with a through hole LED as above, with the LED stood off from the board to land at the right point inside the lens. The lenses give a very nice, finished look to an enclosure, and can off increased viewing angle over a standard LED that just pokes through the panel.