feat(api-ref): show schema of a tag (#7297)

This commit is contained in:
Shahed Nasser
2024-05-10 21:07:35 +03:00
committed by GitHub
parent e960f10aba
commit 1a68f4602c
11 changed files with 368 additions and 77 deletions

View File

@@ -5,14 +5,18 @@ import { forwardRef } from "react"
type SectionContainerProps = {
children: React.ReactNode
noTopPadding?: boolean
noDivider?: boolean
}
const SectionContainer = forwardRef<HTMLDivElement, SectionContainerProps>(
function SectionContainer({ children, noTopPadding = false }, ref) {
function SectionContainer(
{ children, noTopPadding = false, noDivider = false },
ref
) {
return (
<div className={clsx("relative pb-7", !noTopPadding && "pt-7")} ref={ref}>
{children}
<SectionDivider className="-left-1.5 lg:!-left-4" />
{!noDivider && <SectionDivider className="-left-1.5 lg:!-left-4" />}
</div>
)
}