UNPKG

@hmlr/govuk-react-components-library

Version:

These are common component use for React applications based on GDS and govuk-frontend

10 lines (9 loc) 318 B
import React, { AnchorHTMLAttributes } from "react"; import { To } from "react-router-dom"; export interface LinkWithRefProps extends AnchorHTMLAttributes<HTMLAnchorElement> { children: React.ReactNode; to?: To; href?: string; forwardedRef?: React.Ref<HTMLAnchorElement>; [key: string]: unknown; }