Renders a banner component with optional file upload.
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
children | React. | <optional> | React element children | |
customAttributes | Record.<string, any> | <optional> | Custom attributes for the component | |
customClasses | string | | <optional> | Custom classes for the component | |
droplistAttributes | Record.<string, any> | <optional> | Custom attributes for the droplist component | |
droplistClasses | string | | <optional> | Custom classes for the droplist component | |
fileUploadAttributes | Record.<string, any> | <optional> | Custom attributes for the file upload component | |
hasActions | boolean | <optional> | false | Whether to show the actions droplist |
hasUpload | boolean | <optional> | false | Whether to show the file upload |
height | string | <optional> | '' | The height of the component |
i18n | Record.<string, any> | <optional> | The i18n strings for the component | |
id | string | <optional> | '' | The ID of the component |
imageFile | string | <optional> | '' | The image file for the component |
noImageGradient | string | <optional> | '' | The gradient for the component |
noImageGradientColor | string | <optional> | '' | The gradient color for the component |
noImageGradientLayout | object | <optional> | The optional gradient layout for the component | |
removeButtonAttributes | Record.<string, any> | <optional> | Custom attributes for the remove button | |
selectButtonAttributes | Record.<string, any> | <optional> | Custom attributes for the select button | |
spacing | string | | <optional> | '' | The spacing for the component |
uploadButtonAttributes | Record.<string, any> | <optional> | Custom attributes for the upload button | |
ref | React.RefObject.<HTMLElement> | | Ref to the component |
- Since
- 5.6.0
- Source
The banner component.
- Type:
- JSX.
Element
import Banner from '@gravityforms/components/react/admin/modules/Banner';
return (
<Banner>
{ 'children' }
</Banner>
);