@react-motion-router/core
Version:
Declarative routing library for ReactJS ⚛ with animations baked in ⏮
18 lines (17 loc) • 641 B
TypeScript
/// <reference types="react" />
import { PlainObject, XOR } from './common/types';
interface BaseAnchorProps extends React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> {
params?: PlainObject;
hash?: string;
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
}
interface ForwardAnchorProps extends BaseAnchorProps {
href: string;
replace?: boolean;
}
interface BackAnchorProps extends BaseAnchorProps {
goBack: boolean;
}
type AnchorProps = XOR<ForwardAnchorProps, BackAnchorProps>;
export default function Anchor(props: AnchorProps): JSX.Element;
export {};