@littlespoon/link
Version:
40 lines (34 loc) • 792 B
Flow
/**
* Flowtype definitions for Link
* Generated by Flowgen from a Typescript Definition
* Flowgen v1.21.0
* @flow
*/
import React from "react";
declare export var LinkUnderline: {|
+ALWAYS: "always", // "always"
+HOVER: "hover", // "hover"
+NONE: "none", // "none"
|};
export type LinkProps = {
/**
* Component content.
*/
children?: React.ReactNode,
/**
* Controls whether the link is disabled: Defaults to false.
* @defaultValue false
*/
disabled?: boolean,
/**
* Controls when the link should have an underline. Defaults to "always".
*/
underline?: $Values<typeof LinkUnderline>,
...
} & React.AnchorHTMLAttributes<HTMLAnchorElement>;
/**
* Link
*/
declare export default function Link(
x: LinkProps
): React.ReactElement<LinkProps>;