package.src.components.Card.CardFooter.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 styles from '@patternfly/react-styles/css/components/Card/card';
import { css } from '@patternfly/react-styles';
export interface CardFooterProps extends React.HTMLProps {
/** Content rendered inside the Card Footer */
children?: React.ReactNode;
/** Additional classes added to the Footer */
className?: string;
/** Sets the base component to render. defaults to div */
component?: keyof JSX.IntrinsicElements;
}
export const CardFooter: React.FunctionComponent = ({
children,
className,
component = 'div',
...props
}: CardFooterProps) => {
const Component = component as any;
return (
{children}
);
};
CardFooter.displayName = 'CardFooter';