File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
packages/components/src/components/page Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ export type DBPageDefaultProps = {
26
26
*/
27
27
header ?: any ;
28
28
29
+ /**
30
+ * Adds `class` to `<main>` element
31
+ */
32
+ mainClass ?: string ;
33
+
29
34
/**
30
35
* The variant=fixed uses flex-box to make header and footer static
31
36
*/
Original file line number Diff line number Diff line change @@ -68,7 +68,9 @@ export default function DBPage(props: DBPageProps) {
68
68
data-fade-in = { props . fadeIn }
69
69
data-fonts-loaded = { getBooleanAsString ( state . fontsLoaded ) } >
70
70
< Slot name = "header" />
71
- < main class = "db-main" > { props . children } </ main >
71
+ < main class = { cls ( 'db-main' , props . mainClass ) } >
72
+ { props . children }
73
+ </ main >
72
74
< Slot name = "footer" />
73
75
</ div >
74
76
) ;
You can’t perform that action at this time.
0 commit comments