Skip to content

Row

Display a row that separates content areas horizontally in your email.

Example

php
use Flowframe\Brief\Components\Html;
use Flowframe\Brief\Components\Body;
use Flowframe\Brief\Components\Row;
use Flowframe\Brief\Components\Column;

Html::make(
    Body::make(
        Row::make(
            Column::make('First'),
            Column::make('Second')
        )
    )
);

Implements

Component Interface

Allows a components to have childeren and render HTML.

php
interface ComponentInterface
{
    /**
     * Make a new component instance.
     */
    public static function make(ComponentInterface|VoidComponentInterface|string ...$children): static;

    /**
     * Get the children of the component.
     */
    public function getChildren(): array;

    /**
     * Render the component.
     */
    public function render(?string $slot = null): string;
}

Released under the MIT License.