@hmlr/govuk-react-components-library
Version:
These are common component use for React applications based on GDS and govuk-frontend
22 lines (21 loc) • 557 B
TypeScript
import { To } from "react-router-dom";
export interface NavigationItem {
active?: boolean;
className?: string;
children?: React.ReactNode;
href?: string;
to?: To;
reactListKey?: string | number;
[key: string]: unknown;
}
export interface ServiceNavigationProps {
className?: string;
containerClassName?: string;
menuButtonLabel?: string;
navigation?: NavigationItem[];
navigationClassName?: string;
navigationLabel?: string;
serviceName?: string;
serviceUrlHref?: string;
serviceUrlTo?: To;
}