close

HomeBackground

Warning

This component is mainly used in conjunction with wrap/eject in Custom Theme , and is different from components that are directly imported in MDX. You can modify the styles and functions by passing component props or directly overriding the component. If you override the entire component through eject, please note that the reading of the corresponding configuration options of the component will become invalid and you need to control it yourself.

This component is part of the homepage. HomeBackground renders background effects on the homepage and automatically sets the navbar to transparent style.

Usage

Modify or override through custom theme.

import { HomeBackground as BasicHomeBackground } from '@rspress/core/theme-original';

export function HomeBackground() {
  return <BasicHomeBackground className="my-custom-bg" />;
}