UNPKG

@activecollab/components

Version:

ActiveCollab Components

23 lines 1.05 kB
import React, { BaseHTMLAttributes, ReactNode } from "react"; import { PolymorphicComponentPropsWithRef } from "../../utils/types"; export interface ILinkProps extends BaseHTMLAttributes<HTMLElement> { /** Children type of node or string */ children: ReactNode | string; /** Variant Buttons */ variant?: "primary" | "secondary" | "tertiary" | "option" | "contained" | "outlined" | "text colored" | "text gray" | "dark transparent" | "circle raised" | "text link-primary" | "text link-gray"; /** Button size can be big, medium or small */ size?: "big" | "small"; /** Disabled prop */ disabled?: boolean; /** CSS classes */ className?: string; } export type LinkProps<C extends React.ElementType> = PolymorphicComponentPropsWithRef<C, ILinkProps>; export type LinkComponent = <C extends React.ElementType = "a">(props: LinkProps<C>) => React.ReactElement | ReactNode | null; /** * Link component */ export declare const Link: LinkComponent & { displayName?: string; }; //# sourceMappingURL=Link.d.ts.map