Simply by using the @source CSS directive through the CSS-first configuration:
@import "tailwindcss";
...
@source "../node_modules/my_package/";
Tailwind recognizes all components and the CSS classes they use.
Full post from @rozsazoltan at https://stackoverflow.com/a/79433685/9317625