Nanoparticles in vaccines can be designed to mimic the size and shape of pathogens, facilitating better uptake by immune cells. They can also encapsulate antigens or genetic material, protecting them from degradation and ensuring their delivery to the desired cellular compartments. Common types of nanoparticles used include lipid nanoparticles, polymeric nanoparticles, and inorganic nanoparticles.