Prestige Shell Reference
PrestigeShell is the main layout component for a Prestige site. It wraps your app with theming and renders the shared header, search entry point, main content area, and footer.
import { PrestigeShell, type PrestigeShellProps } from "@lonik/prestige/ui";
const options: PrestigeShellProps = {
github: "https://github.com/lukonik/prestige",
};
<PrestigeShell options={options}>{children}</PrestigeShell>;
PrestigeShell props
PrestigeShell itself accepts two props.
children
Type: ReactNode
Required page content rendered inside the shell's <main> element.
options
Type: PrestigeShellProps
Optional runtime shell configuration.
PrestigeShellProps
customHeaderTitle
Type: () => ReactNode
Optional render function that replaces the default header title text.
copyright
Type: () => ReactNode
Optional render function for custom footer copyright content.
beforeHeaderLinks
Type: PrestigeHeaderLink[]
Optional links rendered before the generated collection links in the header.
afterHeaderLinks
Type: PrestigeHeaderLink[]
Optional links rendered after the generated collection links in the header.
github
Type: string
Optional GitHub URL shown in the header. This can be configured in prestige.config.ts through prestigeShellProps.
algolia
Type: AlgoliaOptions
Optional Algolia DocSearch configuration. When omitted, the search UI is not rendered. This can be configured in prestige.config.ts through prestigeShellProps.
license
Type: LicenseOptions
Optional license metadata for footer display. This can be configured in prestige.config.ts through prestigeShellProps.
PrestigeHeaderLink
to
Type: string
Required TanStack Router link target.
label
Type: string | ReactNode
Required link label.
AlgoliaOptions
appId
Type: string
Required Algolia application ID.
apiKey
Type: string
Required Algolia search-only API key used by DocSearch.
indices
Type: string[]
Required list of Algolia index names queried by the search UI.
LicenseOptions
label
Type: string
Required license label shown in the footer, for example MIT.
url
Type: string
Required URL for the license target.
Notes
customHeaderTitleandcopyrightare render functions, not plain strings.beforeHeaderLinksandafterHeaderLinksare arrays of{ to, label }links.github,algolia, andlicensecan be read fromprestige.config.tsautomatically.- If
githubis omitted, the GitHub icon is hidden. - If
algoliais omitted, the search trigger is hidden. - The shell already wraps content in
ThemeProvider, so it should be mounted once at the app root.
