Use anchor for better accessibility and restore history

This commit is contained in:
Chi Vinh Le
2018-08-07 17:37:02 +02:00
parent dff3e40005
commit 52b36e2db0
24 changed files with 264 additions and 115 deletions
@@ -15,6 +15,9 @@ import * as styles from "./BaseButton.css";
interface InnerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
/** If set renders an anchor tag instead */
anchor?: boolean;
href?: string;
target?: string;
/**
* This prop can be used to add custom classnames.
* It is handled by the `withStyles `HOC.