Related links
API Design
This is the HomeLayout provided by rspress/theme, we can design the layout API like following code:
export declare function HomeLayout(props: HomeLayoutProps): JSX.Element;
declare interface HomeLayoutProps {
beforeHero?: React.ReactNode;
afterHero?: React.ReactNode;
beforeHeroActions?: React.ReactNode;
afterHeroActions?: React.ReactNode;
beforeFeatures?: React.ReactNode;
afterFeatures?: React.ReactNode;
}
Tasklist
Related links
API Design
This is the
HomeLayoutprovided byrspress/theme, we can design the layout API like following code:Tasklist