-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
className not apply #27
Comments
Hi, I'm not familiar with CVA, but can you try: // CustomBlock.tsx
import { Block } from './Block.mist'
export function CustomBlock({ children, ...props }) {
return <Block className="Block" { ...props }>children</Block>
} |
This is related to the ticket I added |
I think It is the problem mentioned by @The-Code-Monkey indeed. The code is done so the className are PascalCase and not Camel or Kebab case. @Inaztm could you try with a PascalCase className? |
I will be fixing this tomorrow so the classname is passed through the same as people define it, but the component name will be Pascal case still |
Generates {... props} before className.
Can use the cva solution or just add other classes after the "scoped" class?
The text was updated successfully, but these errors were encountered: