package.src.components.Modal.ModalBoxHeader.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/ModalBox/modal-box';
export interface ModalBoxHeaderProps {
/** Content rendered inside the modal box header. */
children?: React.ReactNode;
/** Additional classes added to the modal box header. */
className?: string;
/** Optional help section for the modal box header. */
help?: React.ReactNode;
}
export const ModalBoxHeader: React.FunctionComponent = ({
children = null,
className = '',
help = null,
...props
}: ModalBoxHeaderProps) => (
{help && (
{children}
{help}
)}
{!help && children}
);
ModalBoxHeader.displayName = 'ModalBoxHeader';