diff options
Diffstat (limited to 'src/components/atoms/layout/main.tsx')
| -rw-r--r-- | src/components/atoms/layout/main.tsx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/components/atoms/layout/main.tsx b/src/components/atoms/layout/main.tsx new file mode 100644 index 0000000..d92a5c7 --- /dev/null +++ b/src/components/atoms/layout/main.tsx @@ -0,0 +1,27 @@ +import { FC, ReactNode } from 'react'; + +export type MainProps = { + /** + * The main body. + */ + children: ReactNode; + /** + * Set additional classnames to the main element. + */ + className?: string; + /** + * The main wrapper id. + */ + id: string; +}; + +/** + * Main component + * + * Render a main element. + */ +const Main: FC<MainProps> = ({ children, ...props }) => { + return <main {...props}>{children}</main>; +}; + +export default Main; |
