Global Footer

The <nys-globalfooter> helps provide users with essential information, secondary navigation, legal links, and contact details across all pages.

Copy Code
<nys-globalfooter agencyName="Office of Information Technology Services">
</nys-globalfooter>

Can't use NYS design System web components in your project? Try using the CSS Variables instead.


Options

With Links

For simpler footers or public-facing sites, the Global Footer can include a single list of navigation links. To add links, follow this format:

  1. Use an unordered list (<ul>) inside the <nys-globalfooter> slot.

  2. Each list item (<li>) should contain an anchor (<a href="">) linking to the desired URL.

Use the prop homepageLink to link your agencyName to your homepage.

Copy Code
<nys-globalfooter agencyName="Office of Information Technology Services" homepageLink="https://ny.gov">
  <ul>
    <li><a href="https://its.ny.gov">ITS Home</a></li>
    <li><a href="https://its.ny.gov/about">About ITS</a></li>
  </ul>
</nys-globalfooter>

With Column Links

For sites that need to organize multiple navigation sections, the Global Footer supports column-based links. To add column links, follow this format:

  1. Use an unordered list (<ul>) inside the <nys-globalfooter> slot.

  2. Group related links into columns by giving each column a parent list item (<li>) with a heading (<span>).

  3. Nest another unordered list (<ul>) inside each column to hold individual link items.

  4. Inside that nested <ul>, add <li> items, each containing an anchor tag (<a href="">) that points to the desired URL.

Use the prop homepageLink to link your agencyName to your homepage.

Copy Code
<nys-globalfooter agencyName="Office of Information Technology Services" homepageLink="https://ny.gov">
  <ul>
    <li>
      <span>About</span>
      <ul>
        <li><a href="https://its.ny.gov/about-us">About ITS</a></li>
        <li><a href="https://its.ny.gov/contact-us">Contact</a></li>
        <li><a href="https://its.ny.gov/policies">Policies</a></li>
      </ul>
    </li>
    <li>
      <span>Resources</span>
      <ul>
        <li><a href="https://its.ny.gov/resources">Developer Tools</a></li>
        <li><a href="https://its.ny.gov/accessibility">Accessibility</a></li>
        <li><a href="https://its.ny.gov/its-tech-podcast">Tech Podcast</a></li>
      </ul>
    </li>
  </ul>
</nys-globalfooter>

Usage

When to use this component

  • Use nys-globalfooter to provide consistent access to essential links like contact details, privacy policies, and terms of use across all pages.
  • Ideal for displaying organizational information and secondary navigation

When to consider something else

  • Don’t use the global footer for primary navigation or highly interactive features.
  • Avoid adding content that is not relevant or essential for all pages.

Do

  • Include essential links and information users need site-wide.
  • Minimize the number of links.

Don't

  • Don't use it for critical alerts or primary navigation.

Accessibility

The <nys-globalfooter> component includes the following accessibility-focused features:

  • Proper use of <footer> and <a> elements ensures compatibility with assistive technologies.
  • Keyboard navigation: Users can tab through all links in the footer.

Properties

Property Type
agencyName String
homepageLink String (URL)

CSS Variables

There are no existing CSS variables for this component. Explore existing options, or propose a new one with a Component Proposal.


Events

Suggest a New Component

Do you have an idea for a new NYS Design System web component? Look through the existing proposals in our GitHub discussions board to see if someone already proposed something similar. If not, feel free to submit one.