© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
trovster

How do I create an Infolist Link?

I want to add a "download" link to an
ImageEntry
ImageEntry
but
->downloadable()
->downloadable()
is only available for the
FileUpload
FileUpload
form component. For example, the following creates a link, but it's not styled nicely (even though I have some basic classes) and seems a little clunky. It also doesn't appear nicely directly below the
ImageEntry
ImageEntry
I have used above.

TextEntry::make('src')
    ->label('Download')
    ->hiddenLabel()
    ->html()
    ->state(static fn (Model $model): string => "<a href='{$model->src}' class='fi-link fi-link-size-sm text-info' download>Download</a>"),
TextEntry::make('src')
    ->label('Download')
    ->hiddenLabel()
    ->html()
    ->state(static fn (Model $model): string => "<a href='{$model->src}' class='fi-link fi-link-size-sm text-info' download>Download</a>"),
Solution
ImageEntry::make('src')
    ->extraImgAttributes([
        'class' => 'w-full h-auto', // @todo make the image full-width of the section.
    ])
    ->url(static fn (Model $model): string => $model->src, shouldOpenInNewTab: true),

TextEntry::make('src')
    ->html()
    ->state('Download')
    ->url(static fn (Model $model): string => $model->src, shouldOpenInNewTab: true),
ImageEntry::make('src')
    ->extraImgAttributes([
        'class' => 'w-full h-auto', // @todo make the image full-width of the section.
    ])
    ->url(static fn (Model $model): string => $model->src, shouldOpenInNewTab: true),

TextEntry::make('src')
    ->html()
    ->state('Download')
    ->url(static fn (Model $model): string => $model->src, shouldOpenInNewTab: true),
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

How to create a chart in an infolist?
FilamentFFilament / ❓┊help
3y ago
Infolist link not clickable
FilamentFFilament / ❓┊help
13mo ago
How to create infolist for RelationManager
FilamentFFilament / ❓┊help
3y ago
How do i create a custom create bulk?
FilamentFFilament / ❓┊help
2y ago