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

[BUG] - Import HiddenSelect and UseSelectProps for Select #3356

Open
rettimo opened this issue Jun 28, 2024 · 1 comment · May be fixed by #3368
Open

[BUG] - Import HiddenSelect and UseSelectProps for Select #3356

rettimo opened this issue Jun 28, 2024 · 1 comment · May be fixed by #3368
Assignees
Labels
📦 Scope : Components Related to the components

Comments

@rettimo
Copy link

rettimo commented Jun 28, 2024

NextUI Version

2.4.1

Describe the bug

I want to create my own Select based on the source code, but I was faced with the fact that it cannot be repeated. Missing HiddenSelect and UseSelectProps for import.

packages/components/select/src/select.tsx

import {HiddenSelect} from "./hidden-select";
import {UseSelectProps, useSelect} from "./use-select";
***

 return (
    <div {...getBaseProps()}>
      <HiddenSelect {...getHiddenSelectProps()} /> 
***

My code:

import { HiddenSelect, UseSelectProps } from '@nextui-org/react' // error

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Create your own select
  2. Copy the code from the packages/components/select/src/select.tsx
  3. Get an import error for HiddenSelect and UseSelectProps

Expected behavior

HiddenSelect and UseSelectProps available for import

Screenshots or Videos

No response

Operating System Version

macOS

Browser

Chrome

Copy link

linear bot commented Jun 28, 2024

@rettimo rettimo changed the title [BUG] - Import HiddenSelect component [BUG] - Import HiddenSelect and UseSelectProps for Select Jun 28, 2024
@ryo-manba ryo-manba self-assigned this Jun 30, 2024
@ryo-manba ryo-manba added the 📦 Scope : Components Related to the components label Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 Scope : Components Related to the components
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants