Web dev folks, I’m implementing the ability to pass classes to components in Kitten and could use your thoughts…
Passing a class is easy: <${MyComponent} … class='myClass'> (same as any DOM element). However, in the component, you can’t get a property named “class” as that’s a reserved keyword. Even if you could, I’m worried about polluting the prop namespace (we also have “slot”).
So, I’m thinking, ALL CAPS for special props?
- Won’t clash
- Stands out
- I’m allergic to $ prefixes
Thoughts?