Skip to content

Commit 6a0bd2b

Browse files
authored
DrawerHeader title can accept ReactNode (#1329)
1 parent 8b9a4f9 commit 6a0bd2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Drawer/DrawerHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useContext } from 'react';
1+
import React, { useContext, ReactNode } from 'react';
22
import classNames from 'classnames';
33

44
import { type IconDefinition } from '@fortawesome/fontawesome-svg-core';
@@ -13,7 +13,7 @@ import { ExpandContext } from './Drawer';
1313

1414
type DrawerHeaderProps = {
1515
bordered?: boolean;
16-
title?: string;
16+
title?: ReactNode;
1717
onRequestClose: (...args: unknown[]) => unknown;
1818
};
1919

0 commit comments

Comments
 (0)