Examples
Documentation
Overview
Usage
Class | Applied to | Outcome |
---|---|---|
.pf-v6-c-file-upload | <div> , <form> | Initiates the file upload component. Required. |
.pf-v6-c-file-upload__file-select | <div> | Initiates the file select element. Required |
.pf-v6-c-file-upload__file-details | <div> | Initiates the file details element. Required |
.pf-v6-c-file-upload__file-details-spinner | <div> | Initiates the file details element. Required |
.pf-v6-c-file-upload__helper-text | <div> | Initiates a container for helper text |
.pf-m-drag-hover | .pf-v6-c-file-upload | Modifies file upload for when an element is dragged or dropped inside of its container. |
.pf-m-loading | .pf-v6-c-file-upload | Modifies file upload for the loading state. |
CSS variables
Expand or collapse column | Selector | Variable | Value | |
---|---|---|---|---|
.pf-v6-c-file-upload | --pf-v6-c-file-upload--RowGap | 0.5rem | ||
| ||||
.pf-v6-c-file-upload | --pf-v6-c-file-upload--PaddingBlockStart | 0.5rem | ||
| ||||
.pf-v6-c-file-upload | --pf-v6-c-file-upload--PaddingBlockEnd | 0.5rem | ||
| ||||
.pf-v6-c-file-upload | --pf-v6-c-file-upload--PaddingInlineStart | 0.5rem | ||
| ||||
.pf-v6-c-file-upload | --pf-v6-c-file-upload--PaddingInlineEnd | 0.5rem | ||
| ||||
.pf-v6-c-file-upload | --pf-v6-c-file-upload--BorderRadius | 6px | ||
| ||||
.pf-v6-c-file-upload | --pf-v6-c-file-upload--BorderWidth | 1px | ||
| ||||
.pf-v6-c-file-upload | --pf-v6-c-file-upload--BorderColor | transparent | ||
.pf-v6-c-file-upload | --pf-v6-c-file-upload--BorderStyle | solid | ||
.pf-v6-c-file-upload | --pf-v6-c-file-upload--m-drag-hover--BorderColor | (In light theme) #0066cc | ||
| ||||
.pf-v6-c-file-upload | --pf-v6-c-file-upload--m-drag-hover--BorderStyle | dashed | ||
.pf-v6-c-file-upload | --pf-v6-c-file-upload__file-select__c-button--m-control--OutlineOffset | calc(-1 * 0.25rem) | ||
| ||||
.pf-v6-c-file-upload | --pf-v6-c-file-upload__file-details__c-form-control--MinHeight | calc(4rem * 2) | ||
| ||||
.pf-v6-c-file-upload.pf-m-drag-hover | --pf-v6-c-file-upload--BorderColor | (In light theme) #0066cc | ||
| ||||
.pf-v6-c-file-upload.pf-m-drag-hover | --pf-v6-c-file-upload--BorderStyle | dashed | ||
|