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

Support Logical operators inside clsx #20

Open
eai04191 opened this issue Jan 1, 2021 · 0 comments
Open

Support Logical operators inside clsx #20

eai04191 opened this issue Jan 1, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@eai04191
Copy link

eai04191 commented Jan 1, 2021

It's great to have inside support for functions like clsx!

<div
    className={clsx(
        "flex flex-col p-4 border-2 border-gray-200 rounded-lg shadow-md", // sorted
        session && "select-none opacity-50" // not sorted
    )}
>

However, using logical operators in this way does not align the second class. I think it's great that this is supported.

@eai04191 eai04191 added the enhancement New feature or request label Jan 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants