When using the CLI to copy in new components, it's definitely more important for the components to be extensible rather than succinct. But your users might appreciate a utility like this when trying to define their own components.
Edit: this might go better in @kobalte/utils, but the cn function is useful here.
This is not a PR because I don't know how I would integrate this into your project. But you might find this useful (I put it into my
utils.tsx
file):Usage:
When using the CLI to copy in new components, it's definitely more important for the components to be extensible rather than succinct. But your users might appreciate a utility like this when trying to define their own components.
Edit: this might go better in
@kobalte/utils
, but thecn
function is useful here.