File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export function App() {
42
42
< Configure hitsPerPage = { 8 } snippetEllipsisText = "…" />
43
43
< div className = "container two-columns" >
44
44
< div className = "left-column" >
45
- < Panel header = "categories" >
45
+ < Panel header = "categories" footer = "This is a footer" >
46
46
< HierarchicalMenu
47
47
attributes = { [
48
48
'hierarchicalCategories.lvl0' ,
Original file line number Diff line number Diff line change @@ -2,15 +2,17 @@ import React from 'react';
2
2
3
3
type PanelProps = React . PropsWithChildren < {
4
4
header : string ;
5
+ footer ?: React . ReactNode ;
5
6
} > ;
6
7
7
- export function Panel ( { header, children } : PanelProps ) {
8
+ export function Panel ( { header, children, footer } : PanelProps ) {
8
9
return (
9
10
< div className = "ais-Panel" >
10
11
< div className = "ais-Panel-header" >
11
12
< span > { header } </ span >
12
13
</ div >
13
14
< div className = "ais-Panel-body" > { children } </ div >
15
+ < div className = "ais-Panel-footer" > { footer } </ div >
14
16
</ div >
15
17
) ;
16
18
}
Original file line number Diff line number Diff line change 8
8
font-weight : var (--ais-font-weight-medium );
9
9
text-transform : capitalize;
10
10
}
11
+
12
+ .ais-Panel-footer {
13
+ margin-top : calc (var (--ais-spacing ) * 0.5 );
14
+ font-size : 0.9em ;
15
+ }
You can’t perform that action at this time.
0 commit comments