class Option extends Component

Option Component (data-only).

Declarative child of Select — pushes normalized option data to Select::$pendingSlotOptions during Blade slot evaluation. Renders nothing.

Usage:

Methods

__construct(string $value, string|null $label = null, string|null $icon = null, string|null $avatar = null, string|null $description = null)

No description

render()

Render nothing — this is a data-only component.

Details

at line 29
__construct(string $value, string|null $label = null, string|null $icon = null, string|null $avatar = null, string|null $description = null)

No description

Parameters

string $value

Option value (required).

string|null $label

Display label (defaults to $value).

string|null $icon

Icon name, emoji, or raw SVG.

string|null $avatar

Avatar URL or emoji.

string|null $description

Secondary description text.

at line 48
Closure render()

Render nothing — this is a data-only component.

Return Value

Closure