new ImageFilePreview()
new ImageFilePreview() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.
new ImageFilePreview(Kirby\Cms\File $file, string $component = 'k-image-file-preview')
Parameters
| Name | Type | Default |
|---|---|---|
| $filerequired | Kirby\Cms\File |
no default value |
| $component | string |
'k-image-file-preview'
|