Skip to main content
Version: v1 (Current)

Theme Wrapper

Generated from public Vue/TypeScript exports by pnpm docs:generate. Edit source comments and stories to update this reference. Types describe the declared API; browser/device constraints are covered in the guides. This catalog reflects source commit fc6bfb108634735f1657e533206c3f8702ad357d; match your installed package and typed manifest before using an export. Source review does not establish registry-release availability.

ThemeWrapper​

import { ThemeWrapper } from '@gxp-dev/app-ui'

Repository source

Props​

NameTypeRequired / defaultDescription
backgroundImagestring | undefined——
backgroundVideostring | undefined——
logoImagestring | undefined——
logoAltstring | undefined""—
logoSizenumber | undefined——
colorsThemeColors | undefined——
hideVideoboolean | undefinedfalse—
pageNamestring | undefined""—
kioskboolean | undefinedfalseOpt into kiosk touch/selection restrictions. Regular apps default to native scrolling.

Slots​

NameTypeRequired / defaultDescription
logo{}——
default{}——

Examples​

These are authored Storybook excerpts, not complete standalone modules. Relative imports refer to the story file; in an app import public components from @gxp-dev/app-ui. Default meta arguments are applied before each story.

Default​

import type { Meta, StoryObj } from '@storybook/vue3-vite'
import ThemeWrapper from './ThemeWrapper.vue'
{
render: (args) => ({
components: { ThemeWrapper },
setup() {
return { args }
},
template: `
<ThemeWrapper v-bind="args">
<div class="flex items-center justify-center min-h-[300px]">
<p class="text-2xl font-bold text-white">Slot Content</p>
</div>
</ThemeWrapper>
`,
}),
}

WithBackgroundImage​

import type { Meta, StoryObj } from '@storybook/vue3-vite'
import ThemeWrapper from './ThemeWrapper.vue'
{
args: {
backgroundImage: 'https://images.unsplash.com/photo-1557683316-973673baf926?w=1200&q=80',
},
render: (args) => ({
components: { ThemeWrapper },
setup() {
return { args }
},
template: `
<ThemeWrapper v-bind="args">
<div class="flex items-center justify-center min-h-[400px]">
<p class="text-2xl font-bold text-white drop-shadow-lg">Background Image</p>
</div>
</ThemeWrapper>
`,
}),
}

WithColors​

import type { Meta, StoryObj } from '@storybook/vue3-vite'
import ThemeWrapper from './ThemeWrapper.vue'
{
args: {
colors: {
page_background_color: '#1a1a2e',
page_text_color: '#eaeaea',
primary_button_background_color: '#e94560',
primary_button_text_color: '#ffffff',
secondary_button_background_color: '#0f3460',
secondary_button_text_color: '#ffffff',
},
},
render: (args) => ({
components: { ThemeWrapper },
setup() {
return { args }
},
template: `
<ThemeWrapper v-bind="args">
<div class="flex flex-col items-center justify-center gap-4 min-h-[300px] p-8">
<p class="text-xl font-bold" style="color: var(--page_text_color)">
Themed Content
</p>
<div class="flex gap-4">
<button
class="px-6 py-2 rounded-lg font-medium"
style="background-color: var(--primary_button_background_color); color: var(--primary_button_text_color)"
>
Primary
</button>
<button
class="px-6 py-2 rounded-lg font-medium"
style="background-color: var(--secondary_button_background_color); color: var(--secondary_button_text_color)"
>
Secondary
</button>
</div>
</div>
</ThemeWrapper>
`,
}),
}