TypeScript
cn
A zero-dep classnames builder that recursively flattens strings, arrays, and object maps, then pipes the result through tailwind-merge to resolve conflicting Tailwind utilities.
Updated 2 weeks ago
Handy code snippets I've collected and written over the years. Filter by category or language to find what you need.
Showing 3 snippets
A zero-dep classnames builder that recursively flattens strings, arrays, and object maps, then pipes the result through tailwind-merge to resolve conflicting Tailwind utilities.
A flexible IntersectionObserver wrapper supporting single or multiple targets, one-shot observation, and scroll-past-viewport detection.
Dynamically inject an external script tag into the DOM, returning a Promise that resolves once it loads.
No snippets found matching your filters.