<x-alert type="error" :message="$message"/>
<div class="alert alert-{{ $type }}">
{{ $message }}
</div>
<option {{ $isSelected($value) ? 'selected="selected"' : '' }} value="{{ $value }}">
{{ $label }}
</option>
/**
* Create the component instance.
*
* @param string $alertType
* @return void
*/
public function __construct($alertType)
{
$this->alertType = $alertType;
}
<div {{ $attributes }}>
<!-- Component content -->
</div>
<x-inputs.button/>
// It is a html view + "controller" union to add in existing page as component!
// Ex. Navbar component, Footer component, ...