Debian Codegraph @

node/@patternfly/react-core/src/components/FileUpload/FileUploadHelperText.tsx

raw
1 import styles from '@patternfly/react-styles/css/components/FileUpload/file-upload';
2 import { css } from '@patternfly/react-styles';
3
4 /** A container for helper text content. This sub-component should be passed as a child to
5 * the main file upload or file upload field component.
6 */
7
8 export interface FileUploadHelperTextProps extends React.HTMLProps<HTMLDivElement> {
9 /** Content to render inside the file upload helper text container. Typically this will be
10 * the helper text component.
11 */
12 children: React.ReactNode;
13 /** Additional classes added to the file upload helper text container element. */
14 className?: string;
15 }
16
17 export const FileUploadHelperText: React.FunctionComponent<FileUploadHelperTextProps> = ({
18 children,
19 className,
20 ...props
21 }: FileUploadHelperTextProps) => (
22 <div className={css(`${styles.fileUpload}__helper-text`, className)} {...props}>
23 {children}
24 </div>
25 );
26 FileUploadHelperText.displayName = 'FileUploadHelperText';