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

compoundSlots unable to infer slots passed into 'extend' #140

Open
binaryartifex opened this issue Dec 22, 2023 · 0 comments
Open

compoundSlots unable to infer slots passed into 'extend' #140

binaryartifex opened this issue Dec 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@binaryartifex
Copy link

Describe the bug
As the title suggests, 'compoundSlots' is unable to infer slots passed into 'extend'

To Reproduce

export const baseStyles = tv({
  slots: {
    base: "bg-neutral-300",
  },
});

export const componentStyles = tv({
  extend: baseStyles,
  slots: {
    something: "text-neutral-800",
  },
  compoundSlots: [
    {
      slots: ["something","base"], // infers 'something', unable to infer 'base'
      className: "shadow-sm" 
    }
  ]
})

Expected behavior
Able to infer extended slots without the need to provide empty placeholders

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome
  • Version: 120.0.6099.110
@binaryartifex binaryartifex added the bug Something isn't working label Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant