UNPKG

@hackplan/polaris

Version:

Shopify’s product component library

17 lines (16 loc) 587 B
import React from 'react'; export interface Props { /** ID for the link */ id?: string; /** The url to link to */ url?: string; /** The content to display inside link */ children?: React.ReactNode; /** Use for a links that open a different site */ external?: boolean; /** Makes the link color the same as the current text color and adds an underline */ monochrome?: boolean; /** Callback when a link is clicked */ onClick?(): void; } export default function Link({ url, children, onClick, external, id, monochrome, }: Props): JSX.Element;