Extend type of title
prop on TopNavigation
and SidebarNavigation
#287
Labels
enhancement
New feature or request
title
prop on TopNavigation
and SidebarNavigation
#287
Basic information
Enhancement description
The
title
prop onTopNavigation
andSidebarNavigation
is of typestring
, which restricts the component usage if, for e.g., theIntl
component needs to be passed as the title.The prop should be of extended type, for e.g.
React.ReactNode
in order to increase flexibility and enable localization without leading to compiler errors because of type mismatch.Current behaviour
title
prop only acceptsstring
type.Wanted behaviour
title
prop acceptsReact.ReactNode
type.Possible workarounds
Passing anything as
title
prop and suppressing the compiler errors with ts-ignore.The text was updated successfully, but these errors were encountered: