Skip to content

Commit

Permalink
add custom layout
Browse files Browse the repository at this point in the history
add comments
  • Loading branch information
NgocNhi123 committed Jun 27, 2024
1 parent 1ab7d69 commit 775a49a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions new-docs/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { ReactElement, ReactNode } from "react";

/**
* Moai components require className "light" for styling so we create a custom
* layout that wrap outside all documents with className "light"
* https://vocs.dev/docs/structure#layout-component
*/
export default function Layout(props: { children: ReactNode }): ReactElement {
return <div className="light">{props.children}</div>;
}

0 comments on commit 775a49a

Please sign in to comment.