UNPKG

@clubmed/trident-ui

Version:

Shared ClubMed React UI components

36 lines (35 loc) 886 B
import { AnchorHTMLAttributes, FunctionComponent, PropsWithChildren } from 'react'; import { IconicNames, IconicTypes } from '@clubmed/trident-icons'; interface LinkProps<T extends HTMLAnchorElement = HTMLAnchorElement> extends AnchorHTMLAttributes<T> { /** * Label text */ label: string; /** * Icon name */ icon?: IconicNames; iconType?: IconicTypes; /** * Icon width */ width?: string; /** * 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 {};