package.src.components.Popover.PopoverHeaderText.tsx Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of react-core Show documentation
Show all versions of react-core Show documentation
This library provides a set of common React components for use with the PatternFly reference implementation.
The newest version!
import * as React from 'react';
import { css } from '@patternfly/react-styles';
import styles from '@patternfly/react-styles/css/components/Popover/popover';
export interface PopoverHeaderTextProps extends React.HTMLProps {
/** Content of the header text */
children: React.ReactNode;
/** Class to be applied to the header text */
className?: string;
/** Heading level of the header title */
headingLevel: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
}
export const PopoverHeaderText: React.FunctionComponent = ({
children,
className,
headingLevel,
...props
}: PopoverHeaderTextProps) => {
const HeadingLevel = headingLevel;
return (
{children}
);
};
PopoverHeaderText.displayName = 'PopoverHeaderText';