Skip to content

Add a start slot to SheetFooter - #224

Open
andrewhuhh wants to merge 2 commits into
mainfrom
feat/sheet-footer-start
Open

andrewhuhh wants to merge 2 commits into
mainfrom
feat/sheet-footer-start

Conversation

@andrewhuhh

@andrewhuhh andrewhuhh commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

SheetFooter justifies its children to the end and never stretches them. A multi-step sheet that needs Back at the start had to wrap everything in its own row and force that row to fill the footer (style={{ flex: 1 }} with justify="between"), and any footer that forgot the override pushed Back to the end with the other actions.

SheetFooter now takes start. Content passed to it is held at the start edge, and the children stay at the end. When the footer is too narrow for both, the end actions wrap to a second line, still aligned to the end. A falsy start renders nothing, so start={step > 1 && <Back />} works without a placeholder.

The new "Back at the start of the footer" example on the sheet page is a two-step sheet. Here it is at 390px, on step two:

Sheet footer with Back at the start at 390px

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@infisical-review-police

Copy link
Copy Markdown

💬 Discussion in Slack: #pr-review-cipher-224-add-a-start-slot-to-sheetfooter

Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel.

@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Adds a start slot to SheetFooter and a two-step catalog example.

  • Sheet footers can keep optional content at the start.

Reviews (2) · Last reviewed commit: "Skip a falsy SheetFooter start and keep ..." · Reviewed by Greptile

Comment thread src/ui/sheet.tsx Resolved

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

…teps

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Capy found no issues.

Open in Capy

This branch has not been deployed

No deployments
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.

1 participant