PluginProbe
Elementor Website Builder – more than just a page builder / 3.8.0-beta1
Elementor Website Builder – more than just a page builder v3.8.0-beta1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
elementor / app / modules / site-editor / assets / js / molecules / site-part.js

site-part.js in Elementor Website Builder – more than just a page builder 3.8.0-beta1, at app/modules/site-editor/assets/js/molecules/site-part.js

32 lines 893 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import Card from 'elementor-app/ui/card/card';
2 import CardHeader from 'elementor-app/ui/card/card-header';
3 import CardBody from 'elementor-app/ui/card/card-body';
4 import CardImage from 'elementor-app/ui/card/card-image';
5 import Heading from 'elementor-app/ui/atoms/heading';
6
7 import './site-part.scss';
8
9 export default function SitePart( props ) {
10 return (
11 <Card className="e-site-part">
12 <CardHeader>
13 <Heading tag="h1" variant="text-sm" className="eps-card__headline">{ props.title }</Heading>
14 { props.actionButton }
15 </CardHeader>
16 <CardBody>
17 <CardImage alt={ props.title } src={ props.thumbnail }>
18 { props.children }
19 </CardImage>
20 </CardBody>
21 </Card>
22 );
23 }
24
25 SitePart.propTypes = {
26 thumbnail: PropTypes.string.isRequired,
27 title: PropTypes.string.isRequired,
28 children: PropTypes.object,
29 showIndicator: PropTypes.bool,
30 actionButton: PropTypes.object,
31 };
32