Using StreamLayer UI Context

Access StreamLayer UI state flags via the useStreamLayerUI React hook to control component visibility in your application.

Overview

The useStreamLayerUI hook provides access to boolean flags for StreamLayer UI components. Use these flags to control the visibility of UI elements in your application.

Available Flags

promotionExternalAd?: boolean
promotionSidebar?: boolean
promotionOverlay?: boolean
promotionNotification?: boolean
promotionBanner?: boolean
app?: boolean
appNotification?: boolean
onboardingNotification?: boolean

Usage

import { useStreamLayerUI } from '@streamlayer/react'

Related