@clubmed/trident-ui
Version:
Shared ClubMed React UI components
32 lines (31 loc) • 839 B
TypeScript
import type { AnchorHTMLAttributes, FunctionComponent, PropsWithChildren } from 'react';
import { type IconicNames, type IconicTypes } from '../atoms/Icons';
interface LinkProps<T extends HTMLAnchorElement = HTMLAnchorElement> extends AnchorHTMLAttributes<T> {
/**
* Label text
*/
label: string;
/**
* Icon name
*/
icon?: IconicNames;
iconType?: IconicTypes;
/**
* Underlined
*/
underlined?: boolean;
/**
* Additional class names
*/
className?: string;
/**
* Is the link inert (not itself clickable but part of a clickable element)
*/
inert?: boolean;
/**
* Allow giving a custom component
*/
component?: FunctionComponent<PropsWithChildren<any>> | string;
}
export declare const Link: FunctionComponent<LinkProps>;
export {};