All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.src.components.Modal.ModalBoxHeader.tsx Maven / Gradle / Ivy

Go to download

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';




© 2015 - 2024 Weber Informatics LLC | Privacy Policy