A generic Om component to handle inputs