@nnc-digital/nnc-design-system
Version:
Design system for West & North Northamptonshire Councils, two unitary councils encompassing Wellingborough, Corby, Daventry, East Northants, Kettering, Northampton, Northamptonshire County and South Northants.
31 lines (30 loc) • 853 B
TypeScript
export interface HeaderProps {
/**
* Hide the searchbar, set to true on the search page so there aren't two search inputs.
*/
hideSearchBar?: boolean;
/**
* Link to the root of the website that will be used on the logo
*/
homeLink?: string;
/**
* Set to true to include a link to /news in the header
*/
hasNewsLink?: boolean;
/**
* Link to the list of all services displayed at top right (#all-services anchor added to this)
*/
allServicesLink?: string;
/**
* This flag is used to alter the all-services link to an in-page anchor if true
*/
isHomepage?: boolean;
/**
* Array of suggestions for the autocomplete input in the search bar
*/
searchSuggestions?: string[];
/**
* The Header contents
*/
children?: React.ReactNode;
}