package.src.components.BackgroundImage.BackgroundImage.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 React from 'react';
import { css } from '@patternfly/react-styles';
import styles from '@patternfly/react-styles/css/components/BackgroundImage/background-image';
import cssBackgroundImage from '@patternfly/react-tokens/dist/esm/c_background_image_BackgroundImage';
export interface BackgroundImageProps extends React.HTMLProps {
/** The URL or file path of the image for the background */
src: string;
/** Additional classes added to the background image. */
className?: string;
}
export const BackgroundImage: React.FunctionComponent = ({
className,
src,
...props
}: BackgroundImageProps) => (
);
BackgroundImage.displayName = 'BackgroundImage';