Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Allow to extend autocomplete's inputwrapper #4031

Open
simPod opened this issue Nov 11, 2024 · 2 comments
Open

[Feature Request] Allow to extend autocomplete's inputwrapper #4031

simPod opened this issue Nov 11, 2024 · 2 comments

Comments

@simPod
Copy link
Contributor

simPod commented Nov 11, 2024

Is your feature request related to a problem? Please describe.

currently there's no way to extend an autocomplete's variant with input's style override.

Describe the solution you'd like

const Extended = extendVariants(NextUIAutocomplete, {
  variants: {
    variant: {
      faded: {
        inputWrapper: [
          'bg-default-900',
          // 'border-medium',
          // 'border-default-300',
          // 'data-[hover=true]:border-default-500',
        ],
      },
    },
  },
});

Describe alternatives you've considered

  <Extended
    variant="faded"
    inputProps={{
      classNames: {
        inputWrapper: [

but that feels like a hack

Screenshots or Videos

No response

Copy link

linear bot commented Nov 11, 2024

@simPod
Copy link
Contributor Author

simPod commented Nov 11, 2024

idk, bot got mad #2975, dupe

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

No branches or pull requests

1 participant