npm.io
1.0.8-beta.1 • Published 2 years ago

@universityofmaryland/utilityheader

Licence
MIT
Version
1.0.8-beta.1
Deps
0
Size
56 kB
Vulns
0
Weekly
0

<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

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

License

Distributed under the MIT license. See LICENSE for details.