File tree Expand file tree Collapse file tree
packages/components/src/renderers/layout Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,13 +4,20 @@ import { SchemaRenderer } from '@object-ui/react';
44import { ComponentRegistry } from '@object-ui/core' ;
55import { cn } from '../../lib/utils' ; // Keep internal import for utils
66
7- export const PageRenderer : React . FC < { schema : PageSchema } > = ( { schema } ) => {
7+ export const PageRenderer : React . FC < { schema : PageSchema ; className ?: string ; [ key : string ] : any } > = ( {
8+ schema,
9+ className,
10+ ...props
11+ } ) => {
812 // Support both body (legacy/playground) and children
913 const content = schema . body || schema . children ;
1014 const nodes = Array . isArray ( content ) ? content : ( content ? [ content ] : [ ] ) ;
1115
1216 return (
13- < div className = { cn ( "min-h-full w-full bg-background p-6 md:p-8" , schema . className ) } >
17+ < div
18+ className = { cn ( "min-h-full w-full bg-background p-6 md:p-8" , className ) }
19+ { ...props }
20+ >
1421 < div className = "mx-auto max-w-7xl space-y-8" >
1522 { ( schema . title || schema . description ) && (
1623 < div className = "space-y-2" >
You can’t perform that action at this time.
0 commit comments