Skip to content

Commit

Permalink
add option to disable display #345 #346
Browse files Browse the repository at this point in the history
  • Loading branch information
ddecrulle committed Nov 22, 2024
1 parent 99a594d commit da0d5d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ export type HeaderProps = {
>
>;
style?: CSSProperties;
/** Default: false */
disableDisplay?: boolean;
};

export namespace HeaderProps {
Expand Down Expand Up @@ -133,6 +135,7 @@ export const Header = memo(
onSearchButtonClick,
classes = {},
style,
disableDisplay = false,
...rest
} = props;

Expand Down Expand Up @@ -194,7 +197,7 @@ export const Header = memo(

return (
<>
<Display />
{disableDisplay && <Display />}
<header
role="banner"
id={id}
Expand Down

0 comments on commit da0d5d5

Please sign in to comment.