kotlin-multiplatform-compose-slot-api
Installation
SKILL.md
When to Use This Skill
Use when you need to:
- Design a reusable component that should render caller-provided content in a specific area
- Understand why
AppButton { content }is better thanAppButton(text = "...") - Implement
Scaffold-style components with multiple named slots - Decide between slots and
CompositionLocalfor deep content injection - Avoid the "prop drilling" problem in Compose
Trigger keywords: slot API, content lambda, composable slot, named slots, scoped content, trailing lambda, flexible component, scaffold pattern, component design, RowScope slot, inversion of control Compose, redesign component, component redesign, flexible layout, reusable component, component architecture, component pattern, composable design.
Freshness rule: Compose Multiplatform slot conventions track CMP releases — recheck the JetBrains CMP docs before using or copying snippets into a new project.