useAutoHideBannerEffect

The purpose of useAutoHideBannerEffect is to autohide top most displayed banner item after a given time out value (in ms).

Example Usage:
const { banners } = useBanner();
useAutoHideBannerEffect({ bannerAutoHideTimeout: 4000 });

Hook Argument

bannerAutoHideTimeout

Type

Default

Number (Required)

4000 (ms)


What’s Next