Skip to content

feat: add typed leading and trailing slots to List.Item - #5042

Draft
adam-sajko wants to merge 21 commits into
callstack:mainfrom
adam-sajko:feat/list-typed-slots
Draft

adam-sajko wants to merge 21 commits into
callstack:mainfrom
adam-sajko:feat/list-typed-slots

Conversation

@adam-sajko

@adam-sajko adam-sajko commented Aug 7, 2026

Copy link
Copy Markdown

Motivation

List.Item layout is tied to the left and right render props: they hand the caller a style and a color and trust them to apply both. leading and trailing take a node instead, so List.Item owns the layout. They take precedence over left and right when both are passed.

Related issue

Related to #4930 and #4976

Draft, stacked on #5041 and #5057.

Test plan

Open the List example, check the leading and trailing slots render and pick up the item color, including in a selected row.

@adam-sajko
adam-sajko force-pushed the feat/list-typed-slots branch from c692ed1 to ec5685e Compare September 8, 2026 09:24
…s-spacing

# Conflicts:
#	src/components/List/ListItem.tsx
#	src/components/__tests__/ListAccordion.test.tsx
#	src/components/__tests__/ListImage.test.tsx
…ist-typed-slots

# Conflicts:
#	src/components/List/ListItem.tsx
@satya164
satya164 requested a balanced review from Copilot September 15, 2026 20:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown

Found potential problems with the pull request:

  • Screenshot or video evidence is missing. Make sure to include one if it affects the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants