UNPKG

@renderlesskit/react

Version:

Collection of headless components/hooks that are accessible, composable, customizable from low level to build your own UI & Design System powered by Reakit

63 lines (62 loc) 2.41 kB
import * as React from "react"; import { ClickableHTMLProps, ClickableOptions } from "reakit"; export declare type LinkOptions = ClickableOptions & { /** * Opens the link in a new tab */ isExternal?: boolean; }; export declare type LinkHTMLProps = ClickableHTMLProps; export declare type LinkProps = LinkOptions & LinkHTMLProps; export declare const useLink: { (options?: LinkOptions | undefined, htmlProps?: import("reakit").TabbableHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): import("reakit").TabbableHTMLProps; unstable_propsAreEqual: (prev: import("reakit").RoleOptions & { disabled?: boolean | undefined; focusable?: boolean | undefined; } & { unstable_clickOnEnter?: boolean | undefined; unstable_clickOnSpace?: boolean | undefined; } & { /** * Opens the link in a new tab */ isExternal?: boolean | undefined; } & React.HTMLAttributes<any> & React.RefAttributes<any> & { wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined; } & { disabled?: boolean | undefined; }, next: import("reakit").RoleOptions & { disabled?: boolean | undefined; focusable?: boolean | undefined; } & { unstable_clickOnEnter?: boolean | undefined; unstable_clickOnSpace?: boolean | undefined; } & { /** * Opens the link in a new tab */ isExternal?: boolean | undefined; } & React.HTMLAttributes<any> & React.RefAttributes<any> & { wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined; } & { disabled?: boolean | undefined; }) => boolean; __keys: readonly any[]; __useOptions: (options: LinkOptions, htmlProps: import("reakit").TabbableHTMLProps) => LinkOptions; }; export declare const Link: import("../system").Component<"a", import("reakit").RoleOptions & { disabled?: boolean | undefined; focusable?: boolean | undefined; } & { unstable_clickOnEnter?: boolean | undefined; unstable_clickOnSpace?: boolean | undefined; } & { /** * Opens the link in a new tab */ isExternal?: boolean | undefined; } & React.HTMLAttributes<any> & React.RefAttributes<any> & { wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined; } & { disabled?: boolean | undefined; }>;