Skip to content

Expose low-level API to use tailwind-merge logic for custom use cases #385

Open
@dcastil

Description

@dcastil

There are some uses cases that are too custom for tailwind-merge to handle but that would benefit from leveraging tailwind-merge's understanding of Tailwind CSS classes and conflicts between them.

Some example use cases:

tailwind-merge could expose a low-level API that makes it possible to use its internal logic for those use cases.

Some important aspects this feature must fulfill:

  • Should not increase bundle size for the vast majority of tailwind-merge users that won't use this code
  • Should be as powerful as possible to enable as many use cases as possible
  • Should not increase package maintenance complexity too much

Metadata

Metadata

Assignees

No one assigned

    Labels

    context-v2Related to tailwind-merge v2featureIs new feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions