Skip to content

Document the bottom sheet's title and the iOS close button - #623

Open
Hesesses wants to merge 1 commit into
NativePHP:mainfrom
Hesesses:docs/bottom-sheet-title
Open

Hesesses wants to merge 1 commit into
NativePHP:mainfrom
Hesesses:docs/bottom-sheet-title

Conversation

@Hesesses

Copy link
Copy Markdown

Documents the title and close-label attributes that NativePHP/mobile-ui#199 added to <native:bottom-sheet> (released in mobile-ui 0.10.0), as asked for on that PR.

  • Props: title, and close-label (also accepted as closeLabel).
  • Events: @dismiss also fires from the close button of a titled iOS sheet.
  • New "Titled sheet" example:
    • On iOS, the title sits in the sheet's navigation bar, and the system close button is added on its leading edge, as Apple's HIG asks for sheets.
    • On Android, the title is heading text under the drag handle, with no close button, as Material intends.
  • Callout: the iOS close button is added for you, so don't draw your own; it calls @dismiss like a swipe down; a permanent sheet gets none; pass close-label for a translated VoiceOver label.
  • Element: title() and closeLabel().

The rest of the page is unchanged.

Validation: git diff --check. Each claim was checked against the merged iOS and Android renderers and BottomSheet.php on mobile-ui main.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant