Skip to content

USelect > document how to make items/options content width, fit the longest item/option width. Add an image example. #4409

Open
@emelendez

Description

@emelendez

You can change the content width globally using your app.config.ts:

export default defineAppConfig({
  ui: {
    select: {
      slots: {
        content: 'min-w-fit'
      }
    }
  }
})

Originally posted by @benjamincanac in #4300

please,
document in its page:
https://ui.nuxt.com/components/select

also, consider to add access to "content" through "ui" prop to make it, not only globally, but particularly available.
Now you can't do:

<USelect :ui="{ content: 'min-w-fit' }" ... />

I had to search hard to find my own answer, and I think it's a very important case for everyone. It will benefit us all.
Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions