InfoIcon
extends Component
in package
Table of Contents
- $icon : string
- $label : string|null
- __construct() : void
- Create a new InfoIcon component instance.
- render() : View|Closure|string
- Get the view / contents that represent the component.
Properties
$icon
public
string
$icon
= 'info'
$label
public
string|null
$label
= null
Methods
__construct()
Create a new InfoIcon component instance.
public
__construct([string $icon = 'info' ][, string|null $label = null ]) : void
Parameters
- $icon : string = 'info'
-
The icon to display (default: 'info')
- $label : string|null = null
-
Optional label text to display with the icon
Return values
void —render()
Get the view / contents that represent the component.
public
render() : View|Closure|string