@universityofmaryland/utilityheader
v1.0.8-beta.1
Published
Utility Header element
Downloads
31
Keywords
Readme
<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
- Search - Includes the search form
- Events - Adds a link to UMD Calendar
- News - Adds a link to UMD Today
- Schools - Adds a link to UMD Colleges/schools list
- Admissions - Adds a link to Admissions overview
- Gift - Adds a link to giving.umd.edu
- Size - Sets maximum width of header contents (for layout consistency)
- 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.