A slots-based API is a design approach where different parts of a component (slots) are predefined, and you can fill these slots with specific child components, ensuring consistent layout and behavior.