import React, { type ReactNode } from 'react'; import type { NavItem, NavLink } from '../../util/utility-types'; import type { Emphasis } from '../../util/variant-types'; export type AppFooterProps = Omit, 'style' | 'title'> & { /** * CSS class names that can be appended to the component. */ className?: string; /** * Web location for the home page. Use this to direct where the main page of the application lives. */ href?: string; /** * Sets of navigation targets in the footer. Consider using four at maximum. */ navItems: NavLink[]; /** * Handle the click event for a given clickable link nav item in the footer. Includes the data from the associated/clicked `NavItem` for reference * (e.g., attaching events, tracking, etc.) */ onLinkClick?: AppFooterEventHandler; /** * CSS properties defined for the HTML element. Includes the component's CSS Custom Properties: * * - `--app-footer__bg` * - `--app-footer__fg` */ style?: AppFooterCSSProperties; /** * Text slot for specifying the copyright information (e.g., "Copyright © ${YEAR}") */ copyright?: string; /** * Determine the amount of emphasis applied to the component, e.g., low or high. * * **Default is `"high"`**. */ emphasis?: Emphasis; /** * Element used for the application's logo (can be text or an image) */ title: ReactNode; }; export interface AppFooterCSSProperties extends React.CSSProperties { /** * Custom property to customize the background color of this component (e.g., background color) */ '--app-footer__bg'?: string; /** * Custom property to customize the foreground color of this component (e.g., text, icon, etc.) */ '--app-footer__fg'?: string; } export type AppFooterEventHandler = (event: React.SyntheticEvent, navItem: NavItem) => void; /** * ## Usage * * A footer is a navigation component. It can hold links, buttons, company info, copyrights, forms, and many other elements. * * ### Best Practices * * * Provide 3-5 important links, along with copyright information, for the footer content. * * Logos should be no wider than ~300px, and no taller than ~150px. * * ## Interaction * * The links and content can guide users to other pages within the application, or to the marketing pages for the organization. * * ## Content & Accessibility * * ### Do's * * * Include links with brief text. * * Include at most one logo, pointing to either the home page for the organization, or the application. * * ### Don'ts * * * Don't use overly verbose text for any link; keep them to 1-3 words each. * * Don't use the AppFooter when working on a Single-page Application (SPA). * * Don't use a logo for any logged-in experience. Logos in `AppFooter` are just for * landing/marketing pages. * * ## Resources * * * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/footer * * https://www.nngroup.com/articles/footers/ */ export declare const AppFooter: { ({ className, copyright, emphasis, href, navItems, onLinkClick, title, ...other }: AppFooterProps): React.JSX.Element; displayName: string; };