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

package.src.components.Card.CardExpandableContent.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 styles from '@patternfly/react-styles/css/components/Card/card';
import { css } from '@patternfly/react-styles';
import { CardContext } from './Card';

export interface CardExpandableContentProps extends React.HTMLProps {
  /** Content rendered inside the Card Body */
  children?: React.ReactNode;
  /** Additional classes added to the Card Body */
  className?: string;
}

export const CardExpandableContent: React.FunctionComponent = ({
  children,
  className,
  ...props
}: CardExpandableContentProps) => (
  
    {({ isExpanded }) =>
      isExpanded ? (
        
{children}
) : null }
); CardExpandableContent.displayName = 'CardExpandableContent';




© 2015 - 2024 Weber Informatics LLC | Privacy Policy