Contactno
extends Component
in package
Contactno Laravel Blade Component
A contact number input component with a prefixed icon based on the type of contact number. Supports various types including Support, Helpline, Work, Office, Mobile, Personal, and Home. Features customizable labels, hints, and placeholder text for enhanced user experience.
Features:
- Icon prefix based on contact number type
- Customizable labels and hints
- Input pattern validation for phone numbers
- Form validation integration
- Livewire real-time updates
- Bulma CSS framework integration
- Mobile-friendly responsive design
Tags
Table of Contents
- $class : string
- $hint : string|null
- $icon : string
- $id : string
- $label : string|null
- $name : string
- $pattern : string
- $placeholder : string|null
- $type : string
- $value : string|null
- __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
$icon
public
string
$icon
$id
public
string
$id
$label
public
string|null
$label
= null
$name
public
string
$name
$pattern
public
string
$pattern
$placeholder
public
string|null
$placeholder
= null
$type
public
string
$type
$value
public
string|null
$value
= null
Methods
__construct()
Create a new component instance
public
__construct(string $name[, string|null $value = null ][, string|null $type = null ][, string|null $id = null ][, mixed $label = null ][, string|null $classes = null ][, string|null $hint = null ]) : mixed
Parameters
- $name : string
- $value : string|null = null
- $type : string|null = null
-
- Support | Helpline | Work | Office | Mobile | Personal | Home
- $id : string|null = null
- $label : mixed = null
- $classes : string|null = null
- $hint : string|null = null
Return values
mixed —render()
Get the view / contents that represent the component.
public
render() : View|string