PluginProbe
Elementor Website Builder – more than just a page builder / 3.7.0
Elementor Website Builder – more than just a page builder v3.7.0
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 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / packages / elementor-ui / components / ui / text.js

text.js in Elementor Website Builder – more than just a page builder 3.7.0, at packages/elementor-ui/components/ui/text.js

22 lines 580 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import styled from 'styled-components';
2 import { getStyle } from 'e-utils';
3 import styles from 'e-styles/text';
4
5 const SharedText = styled.p.attrs( ( props ) => ( { as: props.tag } ) )`${ ( props ) => getStyle( styles, props, 'shared' ) }`;
6
7 const Text = styled( SharedText )`${ ( props ) => getStyle( styles, props, 'unique' ) }`;
8
9 Text.propTypes = {
10 className: PropTypes.string,
11 children: PropTypes.any,
12 variant: PropTypes.oneOf( [ 'xxs', 'xs', 'sm', 'md', 'lg', 'xl' ] ),
13 tag: PropTypes.string,
14 };
15
16 Text.defaultProps = {
17 className: '',
18 tag: 'p',
19 };
20
21 export default Text;
22