@@ -7,7 +7,7 @@ import type { ElementDescriptor, ElementId } from '../customizables/elementDescr
77import { useNavigateToFlowStart , usePopover } from '../hooks' ;
88import { Menu } from '../icons' ;
99import { useRouter } from '../router' ;
10- import type { PropsOfComponent } from '../styledSystem' ;
10+ import type { PropsOfComponent , ThemableCssProp } from '../styledSystem' ;
1111import { animations , common , mqu } from '../styledSystem' ;
1212import { colors } from '../utils/colors' ;
1313import { Card } from './Card' ;
@@ -44,14 +44,15 @@ export type NavbarRoute = {
4444} ;
4545type NavBarProps = {
4646 title : LocalizationKey ;
47+ titleSx ?: ThemableCssProp ;
4748 description ?: LocalizationKey ;
4849 contentRef : React . RefObject < HTMLDivElement > ;
4950 routes : NavbarRoute [ ] ;
5051 header ?: React . ReactNode ;
5152} ;
5253
5354export const NavBar = ( props : NavBarProps ) => {
54- const { contentRef, title, description, routes, header } = props ;
55+ const { contentRef, title, titleSx , description, routes, header } = props ;
5556 const { close } = useNavbarContext ( ) ;
5657 const { navigate } = useRouter ( ) ;
5758 const { navigateToFlowStart } = useNavigateToFlowStart ( ) ;
@@ -126,6 +127,7 @@ export const NavBar = (props: NavBarProps) => {
126127 < >
127128 < NavbarContainer
128129 title = { title }
130+ titleSx = { titleSx }
129131 description = { description }
130132 >
131133 { header }
@@ -140,9 +142,13 @@ export const NavBar = (props: NavBarProps) => {
140142} ;
141143
142144const NavbarContainer = (
143- props : React . PropsWithChildren < { title : LocalizationKey | string ; description ?: LocalizationKey | string } > ,
145+ props : React . PropsWithChildren < {
146+ title : LocalizationKey | string ;
147+ titleSx ?: ThemableCssProp ;
148+ description ?: LocalizationKey | string ;
149+ } > ,
144150) => {
145- const { title, description } = props ;
151+ const { title, titleSx , description } = props ;
146152 return (
147153 < Col
148154 elementDescriptor = { descriptors . navbar }
@@ -172,6 +178,7 @@ const NavbarContainer = (
172178 >
173179 < Heading
174180 as = 'h1'
181+ sx = { titleSx }
175182 localizationKey = { title }
176183 />
177184
0 commit comments