4 Repos
Utilities for concatenating individual class name fragments into a single space-separated string.
Distinct from String Tokenization: Focuses on the specific whitespace-delimited joining required for HTML class attributes.
Explore 4 awesome GitHub repositories matching user interface & experience · Class String Joiners. Refine with filters or upvote what's useful.
classnames is a JavaScript utility for conditionally joining CSS class names into a single space-separated string. It functions as a class name manager that maps boolean flags and objects to specific styles for HTML attribute assignment. The tool resolves abstract class identifiers to computed values, facilitating integration with modular styling systems. It allows for the mapping of dynamic identifiers to scoped class names through a dedicated module resolver. The utility processes strings, arrays, and objects to handle dynamic class name management. It includes capabilities for recursive a
Combines filtered class name fragments into a single string using whitespace as the delimiter.
cva is a TypeScript utility for defining and resolving visual variants for UI components with full type safety. It generates CSS class strings from typed variant definitions, enabling compile-time validation of component usage by deriving the union of all variant prop types from a configuration object. The library distinguishes itself through compound variant matching, which activates styles only when multiple independent variant conditions are simultaneously satisfied, merging their class names. It also provides default value propagation to ensure consistent rendering when no explicit varian
Generates CSS class strings from typed variant definitions with zero runtime overhead.
tailwind-merge is a utility library that resolves conflicting Tailwind CSS class strings when combining multiple sets of classes. It automatically detects and removes conflicting utility classes, keeping only the last class from each group that modifies the same CSS property, while preserving non-conflicting and non-Tailwind classes unchanged. The library handles complex conflict scenarios including modifier-order resolution, arbitrary value type detection, postfix modifier semantics, and asymmetric conflicts where one class group removes preceding classes from other groups but not vice versa
Provides a utility that accepts multiple arguments, conditional values, and nested arrays to build a single merged class string.
Reagent ist ein Framework zum Erstellen von Web-Benutzeroberflächen unter Verwendung von ClojureScript und React.js. Es ermöglicht einen funktionalen Programmieransatz für deklaratives UI-Design, bei dem HTML-Strukturen und Komponenten-Hierarchien unter Verwendung der vektor-basierten Hiccup-Syntax anstelle von JSX definiert werden. Das Projekt unterscheidet sich durch ein reaktives Zustandsmanagementsystem auf Basis von Atomen. Es verfolgt, welche Komponenten spezifische Zustandsatome dereferenzieren, um automatische Re-Renders auszulösen, und bietet Zustands-Cursor, um Updates auf spezifische Pfade eines größeren Zustandsatoms zu isolieren. Es enthält zudem Utilities zum Umhüllen nativer JavaScript-Komponenten und Bibliotheken von Drittanbietern, um sicherzustellen, dass sie mit dem funktionalen Rendering-Zyklus kompatibel bleiben. Das Framework deckt ein breites Spektrum an Funktionen ab, einschließlich Virtual-DOM-Reconciliation, Lifecycle-Management für Side-Effects und Bereinigung sowie Rendering-Performance-Optimierung durch Update-Batching und Calculation-Memoization. Es bietet zudem Tools für serverseitiges Rendering statischer HTML-Strings, globales Zustands-Sharing via Context sowie Sicherheitsprimitive für die HTML-Inhaltssanitisierung.
Includes utilities to concatenate and normalize class name fragments into space-separated HTML class strings.