Skip to content

default

default(itemName, itemNumber, itemsNumber): SectionItemHeaderState

Defined in: components/SectionItemHeader/getSectionItemHeaderState.ts:29

Computes the pure visibility flags, BEM layout modifier and screen-reader announcement strings for SectionItemHeader from the current item position.

Parameter Type Description
itemName SectionItemName Singular name of the collection item (“Degree”, “Job” or “Project”).
itemNumber number 1-based index of the currently displayed item.
itemsNumber number Total count of items in the collection.

SectionItemHeaderState

Derived flags, modifier class and live-region announcement strings.