summit-kit
Version:
A React component library for building modern web applications with an earthy and outdoorsy flair.
21 lines (20 loc) • 934 B
TypeScript
import { StandardProps } from '../Types/general.ts';
type LinkProps = {
href: string;
target?: string;
rel?: string;
};
/**
* Renders a styled anchor (`<a>`) element with customizable classes, href, target, and rel attributes.
*
* @param props - The properties for the Link component.
* @param props.href - The URL to which the link points.
* @param props.children - The content to be displayed inside the link.
* @param props.classes - Optional additional CSS class names to apply to the link.
* @param props.target - Specifies where to open the linked document. Defaults to "_parent".
* @param props.rel - Specifies the relationship of the target object to the link object. Defaults to "noopener noreferrer".
*
* @returns A React anchor element with the specified properties and children.
*/
export declare const Link: (props: StandardProps & LinkProps) => import("react/jsx-runtime").JSX.Element;
export {};