@up-group/react-controls
Version:
We know that there are a ton of react UI library projects to choose from. Our hope with this one is to provide the next generation of react components that you can use to bootstrap your next project, or as a reference for building a UIKit. Read on to get
20 lines (19 loc) • 592 B
TypeScript
/// <reference types="react" />
import * as React from 'react';
export declare type Method = 'push' | 'replace';
export interface LinkProps extends React.Props<Link> {
path?: string;
plain?: boolean;
href?: string;
label?: string;
color?: string;
method?: Method;
onClick: (e: React.MouseEvent<HTMLAnchorElement>) => void;
}
export declare class Link extends React.Component<LinkProps, undefined> {
static defaultProps: LinkProps;
constructor(props: LinkProps);
private handleClick;
render(): JSX.Element;
}
export default Link;