Skip to content

Select improvements - #2700

Merged
calebporzio merged 2 commits into
mainfrom
filip/select-improvements
Aug 9, 2026
Merged

Select improvements#2700
calebporzio merged 2 commits 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

@calebporzio
calebporzio merged commit b7e993d into main Aug 9, 2026
@joshhanley
joshhanley deleted the filip/select-improvements branch August 9, 2026 23:08
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.

2 participants