Skip to content

Migrating from UIContentWrap to HighRise ContentWrap

HLContentWrap wraps HighRise providers (theme, modal, notification, i18n). It replaces UIContentWrap with a slimmer prop surface: locale handling, optional full-screen padding removal, and notification provider config.

Component Implementation Changes

Import Changes

diff
- import { UIContentWrap } from '@gohighlevel/ghl-ui'
+ import { HLContentWrap } from '@platform-ui/highrise'

Basic Usage Changes

diff
- <UIContentWrap>
-   <div>Your content here</div>
- </UIContentWrap>
+ <HLContentWrap locale="en-US">
+   <div>Your content here</div>
+ </HLContentWrap>

Props Changes

ghl-ui PropHighRise PropNotes
localelocaleSame locale codes; defaults to en-US.
notificationConfignotificationConfigSee structure below.
fullScreenfullScreenRemoves default 32px padding when true.
-namespaceCSS namespace prefix; default platform-ui__highrise.
-dirText direction (ltr default, rtl supported).

Notification Config Structure (HighRise)

typescript
interface notificationConfigType {
  containerClass: string
  containerStyle: string | CSSProperties
  placement: 'top' | 'bottom' | 'top-right' | 'top-left' | 'bottom-left' | 'bottom-right'
  max: number
  scrollable: boolean
  to: string | HTMLElement
}

Defaults: empty containerClass, placement='top-right', max=5, scrollable=false, to=body.

Provider Notes

  • Wrap your app root with HLContentWrap to inherit HighRise theme overrides and notification provider.
  • Modal provider is included; no extra setup required for HLModal.
  • Locale changes are reactive; updating locale will re-provide language/date locales.

Examples

Custom Notification Placement

vue
<HLContentWrap
  :notification-config="{
    placement: 'bottom-right',
    max: 4,
    scrollable: true,
    containerClass: 'app-notifications',
  }"
>
  <RouterView />
</HLContentWrap>

RTL + Full Screen

vue
<HLContentWrap dir="rtl" fullScreen>
  <AppShell />
</HLContentWrap>