NoRedInk / noredink-ui / Nri.Ui.Header.V1

Changelog

Patch

Major release adjustments

view : List (Attribute route msg) -> { breadCrumbs : Nri.Ui.BreadCrumbs.V2.BreadCrumbs route, isCurrentRoute : route -> Basics.Bool } -> Accessibility.Styled.Html msg


type Attribute route msg

Customize the header

aTagAttributes : (route -> List (Accessibility.Styled.Attribute msg)) -> Attribute route msg

customPageWidth : Css.Px -> Attribute route msg

By default, the content within the header will expand up to 1000px (the mobile breakpoint value).

For some views, you may want to use MediaQuery.quizEngineBreakpoint instead.

breadCrumbsLabel : String -> Attribute route msg

Default label is "breadcrumbs". You will seldom need override the default.

Add additional content to the header

extraContent : List (Accessibility.Styled.Html msg) -> Attribute route msg

description : String -> Attribute route msg

extraNav : String -> List (Accessibility.Styled.Html msg) -> Attribute route msg