Medkits are a consumable item that may drop from crates that restore the player's HP and allow them to stay in physical fights for longer.
Upon being picked up, they will be automatically consumed by the player and have their HP restored by 30%. The fact that this is a percentage and not a set value means that the player will have more of their HP restored if they have items that upgraded their HP.
Medkits are a random drop from crates all throughout the game. They might drop from them after the player or any other source breaks them.