liber-salti
Version:
Saltí - Liber Design System
56 lines (55 loc) • 1.36 kB
TypeScript
import { HTMLAttributeReferrerPolicy } from 'react';
import { TypographyVariant } from '../Typography/Typography.types';
export interface LinkProps {
/**
* Defines de text variant. Inherits from parent Typography if none is provided
*/
variant?: TypographyVariant;
/**
* Text inside the Link
*/
children?: string;
/**
* A component to assume the Link style. Ex: RouterLink
*/
component?: JSX.Element | ((props: {
children: React.ReactNode | string;
className: string;
}) => JSX.Element);
/**
* Base HTML anchor 'href' attribute
*/
href?: string;
/**
* Base HTML anchor 'download' attribute
*/
download?: string;
/**
* Base HTML anchor 'hrefLang' attribute
*/
hrefLang?: string;
/**
* Base HTML anchor 'media' attribute
*/
media?: string;
/**
* Base HTML anchor 'ping' attribute
*/
ping?: string;
/**
* Base HTML anchor 'rel' attribute
*/
rel?: string;
/**
* Base HTML anchor 'target' attribute
*/
target?: string;
/**
* Base HTML anchor 'type' attribute
*/
type?: string;
/**
* Base HTML anchor 'referrerPolicy' attribute
*/
referrerPolicy?: HTMLAttributeReferrerPolicy;
}