Skip to content

docs(mobile/4): alert button styles (cancel + destructive)#429

Merged
simonhamp merged 1 commit into
mainfrom
docs/alert-button-styles
Jul 19, 2026
Merged

docs(mobile/4): alert button styles (cancel + destructive)#429
simonhamp merged 1 commit into
mainfrom
docs/alert-button-styles

Conversation

@shanerbaner82

Copy link
Copy Markdown
Contributor

Documents the new styled-button support in Dialog::alert() (shipping in nativephp/mobile): buttons can be plain strings or ['label' => ..., 'style' => ...] arrays with default / cancel / destructive styles — destructive renders in the platform's error red, cancel gets iOS's bold/repositioned treatment and Android's conventional dismiss slot.

Adds a Button styles section to docs/mobile/4/the-basics/dialogs.md with an example and style table.

🤖 Generated with Claude Code

Documents the new styled-button shape for Dialog::alert():
['label' => ..., 'style' => default|cancel|destructive], mixing
freely with plain strings.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@simonhamp
simonhamp merged commit 67125d0 into main Jul 19, 2026
2 checks passed
@simonhamp
simonhamp deleted the docs/alert-button-styles branch July 19, 2026 01:10
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.

2 participants