Number
extends Component
in package
Number Laravel Blade Component
A number input component with optional icon and addon. Features customizable labels, hints, and placeholder text for enhanced user experience.
Features:
- Optional icon prefix
- Customizable labels and hints
- Right-aligned input for better readability
- Form validation integration
- Livewire real-time updates
- Bulma CSS framework integration
- Mobile-friendly responsive design
Tags
Table of Contents
- $addon : string|null
- $class : string
- $hint : string|null
- $icon : string|null
- $id : string
- $label : string|null
- $name : string
- $placeholder : string|null
- $value : string|null
- __construct() : mixed
- Create a new component instance
- render() : View|string
- Get the view / contents that represent the component.
Properties
$addon
public
string|null
$addon
= null
$class
public
string
$class
$hint
public
string|null
$hint
= null
$icon
public
string|null
$icon
$id
public
string
$id
$label
public
string|null
$label
= null
$name
public
string
$name
$placeholder
public
string|null
$placeholder
= null
$value
public
string|null
$value
= null
Methods
__construct()
Create a new component instance
public
__construct(string $name[, string|null $value = null ][, string|null $id = null ][, mixed $label = null ][, mixed $icon = '123' ][, string|null $placeholder = null ][, string|null $classes = null ][, string|null $hint = null ][, string|null $addon = null ]) : mixed
Parameters
- $name : string
- $value : string|null = null
- $id : string|null = null
- $label : mixed = null
- $icon : mixed = '123'
-
- true, false, '123'
- $placeholder : string|null = null
- $classes : string|null = null
- $hint : string|null = null
- $addon : string|null = null
Return values
mixed —render()
Get the view / contents that represent the component.
public
render() : View|string