{{-- A select: the native ``. A value too long for the field ends before the arrow with an ellipsis. The field's root carries `data-md-select`; what a select changes in the field's chrome is resources/css/components/select.css. --}} @props([ 'label' => null, 'hint' => null, 'hintClass' => null, 'icon' => null, 'options' => [], 'optionValue' => 'id', 'optionLabel' => 'name', 'placeholder' => null, 'placeholderValue' => null, 'size' => 'md', 'variant' => null, 'full' => false, ]) @php $model = $attributes->whereStartsWith('wire:model')->first(); $id = $attributes->get('id') ?? 'field-'.substr(md5($model.'|'.$label.'|select'), 0, 12); $field = \NoNameWeb\LivewireMaterial\Support\Field::class; $errorKey = $field::key($model, $attributes->get('name')); $messages = $field::messages($errors ?? null, $errorKey); $fieldIconSize = ['sm' => 20, 'xs' => 16][$size] ?? 24; @endphp