A slot is a placeholder inside a child component's template that allows a parent component to inject custom content, making the child component flexible and reusable by letting the parent control parts of its layout.
ChildComponent.jsx
ParentComponent.jsx
ChildComponent.vue
ParentComponent.vue
Slots should have fallback (default) content.
IconButton.jsx
Usage:
IconButton.vue
Usage: