Skip to content

Select improvements - #2700

Open
ganyicz wants to merge 1 commit into
mainfrom
filip/select-improvements
Open

Select improvements#2700
ganyicz wants to merge 1 commit into
mainfrom
filip/select-improvements

Conversation

@ganyicz

@ganyicz ganyicz commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

The scenario

Creating a custom select such as:

SCR-20260724-nyzo

The problem

Currently select options don't have built-in props for icon / description.

Additionally it is not possible to customize the width of the dropdown.

The solution

Add new props to select and options:

<flux:select.option>

  • icon: name or slot
  • description: string
  • avatar: image url
  • avatar:*: avatar props

<flux:select>

  • options:class: eg. min-w-72
  • align: horizontal alignment
  • position: vertical alignment

Notes

  • Backwards compatible with custom content
  • Avatar and icon can't be combined (avatar has precedence)
  • Avatar uses label as avatar:name but not slot

Flux Pro: https://github.com/livewire/flux-pro/pull/525
Docs: https://github.com/livewire/flux-docs/pull/181

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant