feat(button): add to prop type

The docs do show that the "to" prop is usable on the button, but the types don't support it, making it hard to use in types components.

https://primevue.org/button/#link
pull/7077/head
J-Michalek 2025-01-12 19:51:56 +01:00 committed by GitHub
parent 536d21cef1
commit 6507c612ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -207,6 +207,10 @@ export interface ButtonProps extends ButtonHTMLAttributes {
* @defaultValue false
*/
unstyled?: boolean;
/**
* Route Location the router-link should navigate to when clicked on.
*/
to?: string
}
/**