From 6507c612eae5a31aa03fc154b997808d8c2585dd Mon Sep 17 00:00:00 2001 From: J-Michalek <71264422+J-Michalek@users.noreply.github.com> Date: Sun, 12 Jan 2025 19:51:56 +0100 Subject: [PATCH] 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 --- packages/primevue/src/button/Button.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/primevue/src/button/Button.d.ts b/packages/primevue/src/button/Button.d.ts index a1605914c..8f0356993 100755 --- a/packages/primevue/src/button/Button.d.ts +++ b/packages/primevue/src/button/Button.d.ts @@ -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 } /**