Debian Codegraph @

node/@patternfly/react-table/src/components/Table/Caption.tsx

raw
1 import styles from '@patternfly/react-styles/css/components/Table/table';
2 import { css } from '@patternfly/react-styles';
3
4 export interface CaptionProps {
5 /** Content rendered inside the caption */
6 children?: React.ReactNode;
7 /** Additional classes added to the caption */
8 className?: string;
9 }
10
11 export const Caption: React.FunctionComponent<CaptionProps> = ({ children, className, ...props }: CaptionProps) => (
12 <caption className={css(styles.tableCaption, className)} {...props}>
13 {children}
14 </caption>
15 );
16 Caption.displayName = 'Caption';