-
Notifications
You must be signed in to change notification settings - Fork 10
Declare whether a nested instance's slot is composable #630
Copy link
Copy link
Open
Labels
react-from-specsTransformer from specs into React codeTransformer from specs into React codeschemaspecs-schema types and JSON schemaspecs-schema types and JSON schemaspecs-from-figmaTransformer from Figma into specsTransformer from Figma into specswebcomponents-from-specsTransformer from specs into web components codeTransformer from specs into web components code
Description
Activity
Metadata
Metadata
Assignees
Labels
react-from-specsTransformer from specs into React codeTransformer from specs into React codeschemaspecs-schema types and JSON schemaspecs-schema types and JSON schemaspecs-from-figmaTransformer from Figma into specsTransformer from Figma into specswebcomponents-from-specsTransformer from specs into web components codeTransformer from specs into web components code
Type
Fields
Priority
None yet
Projects
- StatusShow more project fieldsReady
Problem
A component's layout can contain an instance whose own slot holds authored content — a Menu placing a Bottom Sheet, with an action list drawn inside it. The schema cannot express whether that nested slot is part of the Menu's composable surface or the Menu's private business. Neither permission nor prohibition can be stated.
The information is not in the design file either. In Figma, composition is direct manipulation: every nested slot is addressable because the designer edits the tree in place, so nothing records that exposure was intended. In code a component is closed — only declared props are reachable. Filling a slot and exposing a slot look identical on canvas and are different acts.
Two consequences, both observed:
Potential solution(s)
Acceptance criteria
Case data
Notes
Capture currently records these fills for compositions only (
SlotContent.anchorFillsOnVariantElements), where the arrangement is the deliverable and no API surface conflicts. Components stay silent rather than answering by accident. Recorded inspecs-from-figma/RUNTIME_GAPS.md.