Creating a leaflet map as input

Has anyone used leaflet as an input interface to allow a user to select a point on a map and extract latitude and longitude? It would be extremely helpful to allow for this? I could not figure out the right input component to do this, and any HTML component does not accept input?