Debian Codegraph @

node/@patternfly/react-core/src/components/Hint/HintTitle.tsx

raw
1 import styles from '@patternfly/react-styles/css/components/Hint/hint';
2 import { css } from '@patternfly/react-styles';
3
4 export interface HintTitleProps {
5 /** Content rendered inside the hint title. */
6 children?: React.ReactNode;
7 /** Additional classes applied to the hint title. */
8 className?: string;
9 }
10
11 export const HintTitle: React.FunctionComponent<HintTitleProps> = ({
12 children,
13 className,
14 ...props
15 }: HintTitleProps) => (
16 <div className={css(styles.hintTitle, className)} {...props}>
17 {children}
18 </div>
19 );
20 HintTitle.displayName = 'HintTitle';