Skip to content

Add HTML attribute support to GoBackButton and GoForward button#5273

Open
lavisha4193 wants to merge 2 commits intoDioxusLabs:mainfrom
lavisha4193:main
Open

Add HTML attribute support to GoBackButton and GoForward button#5273
lavisha4193 wants to merge 2 commits intoDioxusLabs:mainfrom
lavisha4193:main

Conversation

@lavisha4193
Copy link

…dButton

- Add GlobalAttributes extension to HistoryButtonProps
- Allow passing class, style, and other HTML attributes to button elements
- Update documentation examples to demonstrate attribute usage
- Maintains consistency with Link component pattern
@lavisha4193 lavisha4193 requested a review from a team as a code owner January 29, 2026 19:08
@ealmloff ealmloff added breaking This is a breaking change router Related to the router implementation labels Mar 10, 2026
Copy link
Member

@ealmloff ealmloff left a comment

Choose a reason for hiding this comment

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

Thanks! Unfortunately since HistoryButtonProps was a public struct with no private props or non-exhaustive attribute, this is technically breaking so we may wait until the next major release

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

Labels

breaking This is a breaking change router Related to the router implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to set HTML attributes on GoBackButton and GoForwardButton

2 participants