Theme

PlaygroundBeta

npm_versionnpm Paragon package page

useIndexOfLastVisibleChild

Sample Usage

This hook will find the index of the last child of a containing element that fits within its bounding rectangle. This is done by summing the widths of the children until they exceed the width of the container.

Any Paragon component or export may be added to the code example.