@postenbring/hedwig-react
Version:
React components for [Hedwig Design System](https://github.com/bring/hedwig-design-system).
28 lines • 968 B
TypeScript
import * as React from "react";
export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
/**
* The visual style of the link
*/
variant?: "underline" | "solid" | "inverted" | "no-underline" | "inverted-no-underline";
/**
* Font size of the link
* @default "default"
*/
size?: "default" | "small" | "large" | "technical";
/**
* Specify that there is an icon in the link.
* `icon="leading"`: There is an icon before the text.
* `icon="trailing"`: There is an icon after the text.
*
*/
icon?: "leading" | "trailing";
children: React.ReactNode;
/**
* Change the default rendered element for the one passed as a child, merging their props and behavior.
*
* @default false
*/
asChild?: boolean;
}
export declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
//# sourceMappingURL=link.d.ts.map