1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import { FC, HTMLAttributes, ReactNode } from 'react'; export type MainProps = HTMLAttributes<HTMLElement> & { /** * The main body. */ children: ReactNode; }; /** * Main component * * Render a main element. */ export const Main: FC<MainProps> = ({ children, ...props }) => { return <main {...props}>{children}</main>; };