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 / assets / js / ui / modal / modal-tip.js

modal-tip.js in Elementor Website Builder – more than just a page builder 3.8.0-beta1, at app/assets/js/ui/modal/modal-tip.js

25 lines 638 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { arrayToClassName } from '../../utils/utils';
2
3 import Heading from 'elementor-app/ui/atoms/heading';
4 import Text from 'elementor-app/ui/atoms/text';
5
6 export default function ModalTip( props ) {
7 return (
8 <div className={ arrayToClassName( [ 'eps-modal__tip', props.className ] ) }>
9 <Heading variant="h3" tag="h3">{ props.title }</Heading>
10 { props.description && <Text variant="xs">{ props.description }</Text> }
11 </div>
12 );
13 }
14
15 ModalTip.propTypes = {
16 className: PropTypes.string,
17 title: PropTypes.string,
18 description: PropTypes.string,
19 };
20
21 ModalTip.defaultProps = {
22 className: '',
23 title: __( 'Tip', 'elementor' ),
24 };
25