Skip to content

[New Feature] Add Util function to merge classes and merge all files to use the util #613

@kotAPI

Description

@kotAPI

🚀 Feature Request


Feature Description

We currently apply classes to our components this way

className = `${rootClassName} ${className}`

Where we end up with empty spaces in class strings when a value isn't available.

<div class="rootclass "></div>

sometimes there's also a risk of className being undefined
which causes our classes to look like this

<div class="rootclass undefined"></div>

Using tools like clsx or any other utils can help with this

https://www.npmjs.com/package/clsx

This will also require us to refactor most of our components

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions