Checkbox
extends Component
in package
Checkbox Laravel Blade Component
A checkbox input component that supports single and multiple selections. Features customizable labels, hints, and margin options for enhanced user experience.
Features:
- Single and multiple checkbox support
- Customizable labels and hints
- Margin control for layout flexibility
- Form validation integration
- Livewire real-time updates
- Bulma CSS framework integration
- Mobile-friendly responsive design
Tags
Table of Contents
- $class : string
- $hint : string|null
- $id : string|null
- $label : string|null
- $margin : mixed
- $multiple : bool
- $name : string
- $options : mixed
- $value : mixed
- __construct() : mixed
- Create a new component instance
- render() : View|string
- Get the view / contents that represent the component.
Properties
$class
public
string
$class
$hint
public
string|null
$hint
= null
$id
public
string|null
$id
= null
$label
public
string|null
$label
= null
$margin
public
mixed
$margin
$multiple
public
bool
$multiple
$name
public
string
$name
$options
public
mixed
$options
$value
public
mixed
$value
Methods
__construct()
Create a new component instance
public
__construct(string $name[, array<string|int, mixed> $options = [] ][, mixed $value = null ][, mixed $label = null ][, string|null $classes = null ][, bool $margin = true ][, string|null $hint = null ]) : mixed
Parameters
- $name : string
- $options : array<string|int, mixed> = []
- $value : mixed = null
- $label : mixed = null
- $classes : string|null = null
- $margin : bool = true
- $hint : string|null = null
Return values
mixed —render()
Get the view / contents that represent the component.
public
render() : View|string