Make A Login Widget As A Plugin

Does anyone have example code to a login widget (as a plugin) with a remember me box?