UNPKG

@adaptui/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

16 lines (15 loc) 578 B
import { CommandOptions } from "ariakit"; import { As, Props } from "ariakit-utils/types"; export declare const useLink: import("ariakit-utils").Hook<LinkOptions<"a">>; export declare const Link: import("ariakit-utils").Component<LinkOptions<"a">>; export declare type LinkOptions<T extends As = "a"> = CommandOptions<T> & { /** * Opens the link in a new tab * @default false */ isExternal?: boolean; }; export declare type LinkProps<T extends As = "a"> = Props<LinkOptions<T>>; export declare function isLink(element: { tagName: string; }): boolean;