aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/@next/components/button.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/website/ts/@next/components/button.tsx b/packages/website/ts/@next/components/button.tsx
index 39c080f0b..4c8c0361e 100644
--- a/packages/website/ts/@next/components/button.tsx
+++ b/packages/website/ts/@next/components/button.tsx
@@ -22,13 +22,14 @@ interface ButtonInterface {
to?: string;
onClick?: () => any;
theme?: ThemeInterface;
+ useAnchorTag?: boolean;
}
export const Button = (props: ButtonInterface) => {
- const { children, href, isWithArrow, to } = props;
+ const { children, href, isWithArrow, to, useAnchorTag } = props;
let linkElem;
- if (href) {
+ if (href || useAnchorTag) {
linkElem = 'a';
}
if (to) {