kmp-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 than AppButton(text = "...")
  • Implement Scaffold-style components with multiple named slots
  • Decide between slots and CompositionLocal for 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.


Installs
14
GitHub Stars
2
First Seen
Aug 3, 2026
kmp-compose-slot-api — ronjunevaldoz/kmp-agent-skills