package.src.layouts.Gallery.GalleryItem.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';
export interface GalleryItemProps extends React.HTMLProps {
/** content rendered inside the Gallery Item */
children?: React.ReactNode;
/** Sets the base component to render. defaults to div */
component?: React.ElementType | React.ComponentType;
}
export const GalleryItem: React.FunctionComponent = ({
children = null,
component = 'div',
...props
}: GalleryItemProps) => {
const Component: any = component;
return {children} ;
};
GalleryItem.displayName = 'GalleryItem';