aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout/main.tsx
blob: 919b25a7a2c877810999b8df31d3314787cfb8cf (plain)
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>;
};