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.
Parameters
Section titled “Parameters”| 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. |
Returns
Section titled “Returns”Derived flags, modifier class and live-region announcement strings.