We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c117744 commit 38acf90Copy full SHA for 38acf90
src/components/MainArticle.tsx
@@ -1,9 +1,16 @@
1
-import { Box, type BoxProps } from "@chakra-ui/react"
+import { cn } from "@/lib/utils/cn"
2
3
import { MAIN_CONTENT_ID } from "@/lib/constants"
4
5
-const MainArticle = (props: BoxProps) => (
6
- <Box as="article" id={MAIN_CONTENT_ID} scrollMarginTop={24} {...props} />
+const MainArticle = ({
+ className,
7
+ ...props
8
+}: React.HTMLAttributes<HTMLDivElement>) => (
9
+ <article
10
+ id={MAIN_CONTENT_ID}
11
+ className={cn("scroll-mt-24", className)}
12
+ {...props}
13
+ />
14
)
15
16
export default MainArticle
0 commit comments