Skip to content

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

Open
shanerbaner82 wants to merge 1 commit into
mainfrom
docs/alert-button-styles
Open

docs(mobile/4): alert button styles (cancel + destructive)#429
shanerbaner82 wants to merge 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>
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