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 #2975

Open
simPod opened this issue May 10, 2024 · 1 comment
Open

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

simPod opened this issue May 10, 2024 · 1 comment

Comments

@simPod
Copy link

simPod commented May 10, 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 May 10, 2024

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