Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

UMD-Digital/elements-utility-header

Repository files navigation

<umd-utility-header> element

Installation

$ yarn add @universityofmaryland/utilityheader

Basic Usage

Import the utility header in your js if you bundle using a transpile with babel or typescript.

import '@universityofmaryland/utilityheader';

HTML usage

<umd-utility-header
  search
  events
  news
  schools
  admissions
  gift
  size="1024px"
  padding="20"
>
</umd-utility-header>

Attribute options

  1. Search - Includes the search form
  2. Events - Adds a link to UMD Calendar
  3. News - Adds a link to UMD Today
  4. Schools - Adds a link to UMD Colleges/schools list
  5. Admissions - Adds a link to Admissions overview
  6. Gift - Adds a link to giving.umd.edu
  7. Size - Sets maximum width of header contents (for layout consistency)
  8. Padding - Sets the horizontal padding size (for layout consistency)

More Example Usage

Include gift link and sets the gutters (padding) to be 20px

<umd-utility-header gift padding="20"> </umd-utility-header>

Include the search form and events link. Adding search="domain" will set the search focus to current site (example on diversity.umd.edu, the search will default to diversity content)

<umd-utility-header search="domain" events> </umd-utility-header>

License

Distributed under the MIT license. See LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published