4 个仓库
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 是一个使用 ClojureScript 和 React.js 构建 Web 用户界面的框架。它实现了声明式 UI 设计的函数式编程方法,其中 HTML 结构和组件层次结构使用基于向量的 Hiccup 语法而不是 JSX 定义。 该项目通过基于原子(Atoms)的响应式状态管理系统脱颖而出。它跟踪哪些组件解引用特定的状态原子以触发自动重新渲染,并提供状态游标(Cursors)以将更新隔离到较大状态原子的特定路径。它还包括用于包装原生 JavaScript 组件和第三方库的工具,以确保它们与函数式渲染周期保持兼容。 该框架涵盖了广泛的功能,包括虚拟 DOM 协调、副作用和清理的生命周期管理,以及通过更新批处理和计算记忆化进行的渲染性能优化。它还提供用于静态 HTML 字符串的服务器端渲染、通过上下文(Context)的全局状态共享,以及用于 HTML 内容清理的安全原语。
Includes utilities to concatenate and normalize class name fragments into space-separated HTML class strings.