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] - Export classNames from useSelect #4935

Open
morristrace opened this issue Feb 25, 2025 · 1 comment
Open

[BUG] - Export classNames from useSelect #4935

morristrace opened this issue Feb 25, 2025 · 1 comment
Assignees
Labels
📦 Scope : Components Related to the components ✨ Type: Enhancement New enhancement on existing codebase

Comments

@morristrace
Copy link

morristrace commented Feb 25, 2025

HeroUI Version

2.6.14

Describe the bug

I want to create my own components based on HeroUI components. Most of the components have a useButton, useCard, useInput, etc. that returns the classNames among other things, but classNames is missing from the return on useSelect.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Create your own Select

  2. Copy the code below
    export function Select({...props}: SelectProps) { const styles = useSelect({...props})

  3. Try to access styles.classNames

  4. Get 'Property 'classNames' does not exist on type' error

Expected behavior

classNames available from the useSelect

Screenshots or Videos

No response

Operating System Version

Windows

Browser

Firefox

Copy link

linear bot commented Feb 25, 2025

@wingkwong wingkwong added ✨ Type: Enhancement New enhancement on existing codebase 📦 Scope : Components Related to the components labels Feb 26, 2025
@wingkwong wingkwong self-assigned this Feb 26, 2025
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 ✨ Type: Enhancement New enhancement on existing codebase
Projects
None yet
Development

No branches or pull requests

2 participants