# elementor/3.8.0-beta1/app/assets/js/ui/table/table-cell.js

Elementor Website Builder – more than just a page builder, version 3.8.0-beta1. 18 lines.

- Page: https://pluginprobe.com/plugins/elementor/3.8.0-beta1/code/app/assets/js/ui/table/table-cell.js
- Raw: https://pluginprobe.com/plugins/elementor/3.8.0-beta1/raw/app/assets/js/ui/table/table-cell.js
- Modified: 2022-09-19T16:26:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elementor/3.8.0-beta1/code/app/assets/js/ui/table/table-cell.js#L10-L20`.

```javascript
import { arrayToClassName } from 'elementor-app/utils/utils.js';

export default function TableCell( props ) {
	const Element = () => React.createElement( props.tag, {
		className: arrayToClassName( [ 'eps-table__cell', props.className ] ),
		colSpan: props.colSpan || null,
	}, props.children );

	return <Element />;
}

TableCell.propTypes = {
	children: PropTypes.any,
	className: PropTypes.string,
	colSpan: PropTypes.oneOfType( [ PropTypes.number, PropTypes.string ] ),
	tag: PropTypes.oneOf( [ 'td', 'th' ] ).isRequired,
};

```
