Skip to content

Convert this ternary className to windstitch #18

@AbdallahAbis

Description

@AbdallahAbis

Hey folks,
Sorry for opening an issue for this. I couldn't find discussions on the repo, so I had to post this as an issue.

I have this working className

className={classNames(
  "whitespace-nowrap px-3 py-4 text-sm",
  (!isBold && !hasDarkMode) && "text-gray-500",
  isBold && "font-medium text-gray-900",
   hasDarkMode ? (isBold ? "dark:text-white" : "dark:text-gray-300") : ""
 )}

And I didn't know how to convert it to Windstitch, I tried using compound variants, but that didn't work for me.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions