Skip to content
PHP Ecosystem
Explore

RenderableInterface

API reference › HTML Contracts › RenderableInterface

interfaceUIAwesome\Html\Contracts\RenderableInterface
ExtendsStringable
Sourcesrc/RenderableInterface.php
Implemented by 5 types

Defines the contract for objects that can be rendered as HTML strings.

Implementing classes produce their HTML representation via render() and support string casting via Stringable.

MethodDescriptionDefined by
render() abstractRenders the object as an HTML string.RenderableInterface
abstract public function render(): string

Renders the object as an HTML string.

Returns

string: Rendered HTML output.