# tableberg/1.1.5/admin/src/components/BoxContent/BoxContent.jsx

Tableberg – Simple Gutenberg Table Block, version 1.1.5. 76 lines.

- Page: https://pluginprobe.com/plugins/tableberg/1.1.5/code/admin/src/components/BoxContent/BoxContent.jsx
- Raw: https://pluginprobe.com/plugins/tableberg/1.1.5/raw/admin/src/components/BoxContent/BoxContent.jsx
- Modified: 2026-09-16T03:30:32+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/tableberg/1.1.5/code/admin/src/components/BoxContent/BoxContent.jsx#L10-L20`.

```jsx
import React from "react";
import BoxContentTitle from "./BoxContentTitle";
import BoxContentInc from "./BoxContentInc";

/**
 * Box content layout types.
 *
 * @type {{VERTICAL: string, HORIZONTAL: string}}
 */
export const BoxContentLayout = {
    HORIZONTAL: "horizontal",
    VERTICAL: "vertical",
};

/**
 * Box content size types.
 *
 * @type {{normal: string, JUMBO: string}}
 */
export const BoxContentSize = {
    JUMBO: "jumbo",
    NORMAL: "normal",
};

/**
 * Box content align types.
 *
 * @type {{CENTER: string, LEFT: string}}
 */
export const BoxContentAlign = {
    LEFT: "left",
    CENTER: "center",
};

/**
 * Box content component.
 *
 * @param {Object}        props                                    component properties
 * @param {string | null} props.title                              box title
 * @param {string | null} props.content                            box content
 * @param {string}        [props.layout=BoxContentLayout.VERTICAL] box layout, available values can be found in BoxContentLayout object
 * @param {string}        [props.size=BoxContentLayout.NORMAL]     box size, available values can be found in BoxContentSize object
 * @param {string}        [props.alignment=BoxContentAlign.LEFT]   box alignment, available values can be found in BoxContentAlign object
 * @param {Function}      props.children                           component children
 */
function BoxContent({
    title = null,
    content = null,
    layout = BoxContentLayout.VERTICAL,
    size = BoxContentSize.NORMAL,
    alignment = BoxContentAlign.LEFT,
    children,
}) {
    return (
        <div
            className={"tableberg-box-content"}
            data-layout={layout}
            data-size={size}
            data-alignment={alignment}
        >
            <div className={"tableberg-box-content-title-inc-wrapper"}>
                {title && <BoxContentTitle>{title}</BoxContentTitle>}
                {content && <BoxContentInc>{content}</BoxContentInc>}
            </div>
            {children && (
                <div className={"tableberg-box-content-footer"}>{children}</div>
            )}
        </div>
    );
}

/**
 * @module BoxContent
 */
export default BoxContent;

```
