Documentation

File extends Component

File Laravel Blade Component

A file input component that supports different document types such as PDF, Excel, Image, and Zip. Features customizable labels, placeholders, and hints for enhanced user experience.

Features:

  • Supports multiple document types with appropriate file acceptance
  • Customizable labels and placeholders
  • Option to display the file input in a box style
  • Form validation integration
  • Livewire real-time updates
  • Bulma CSS framework integration
  • Mobile-friendly responsive design
Tags
author

V360

version
1.0.0
since
2024-06-25
example

Table of Contents

$accept  : string
$box  : bool
$filename  : string|null
$hint  : string|null
$id  : string
$label  : string|null
$name  : string
$placeholder  : string|null
$type  : string|null
Type of document - pdf | excel | image
__construct()  : mixed
Create a new component instance
render()  : View|string
Get the view / contents that represent the component.

Properties

$accept

public string $accept

$filename

public string|null $filename = null

$hint

public string|null $hint = null

$label

public string|null $label = null

$name

public string $name

$placeholder

public string|null $placeholder = null

$type

Type of document - pdf | excel | image

public string|null $type = null

Methods

__construct()

Create a new component instance

public __construct(string $name[, mixed $label = null ][, string $placeholder = 'Choose a file' ][, string|null $id = null ][, string|null $type = null ][, bool $box = false ][, string|null $filename = null ][, string|null $hint = null ]) : mixed
Parameters
$name : string
$label : mixed = null
$placeholder : string = 'Choose a file'
$id : string|null = null
$type : string|null = null
  • pdf | excel | image | zip
$box : bool = false
  • whether to show the file in a box or not
$filename : string|null = null
  • name of the file to be displayed
$hint : string|null = null
  • additional information about the file input
Return values
mixed

render()

Get the view / contents that represent the component.

public render() : View|string
Return values
View|string

Search results