Skip to content

Head

Contains head components, related to the document such as style and meta elements.

Example

php
use Flowframe\Brief\Components\Html;
use Flowframe\Brief\Components\Head;

Html::make(
    Head::make(
        // Font::make()
    )
);

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.