Skip to main content Skip to navigation

Components: Media

How to use

A component to display an image or icon with text on the side.

Media::make()
    ->image(Storage::url($speaker->picture))
    ->title($speaker->name)
    ->subtitle($speaker->email),

Available methods

title(string $title): static

Set the title.

Media::make()
    ->title('John Doe');

subtitle(string $subtitle): static

Set the subtitle.

Media::make()
    ->subtitle('[email protected]');

Inherited methods

The Media component extends the base component and inherits all of its methods.

It also inherits the methods from the following traits: