feat(api-ref): show schema of a tag (#7297)
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user