4 Repos
Utilities for extracting keys from objects based on truthy values to determine active styles.
Distinct from Object Key Accessors: Distinct from object key accessors as it focuses on conditional selection for styling rather than generic retrieval.
Explore 4 awesome GitHub repositories matching web development · Conditional Class Mappings. 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
Conditionally joins strings, arrays, and objects into a single space-separated string for CSS classes.
clsx is a JavaScript utility for constructing space-separated CSS class strings. It functions as a logic-based string builder that merges strings and objects into a single string by evaluating the truthiness of provided values. The utility orchestrates the generation of HTML class attributes by filtering out null or undefined values. It enables conditional styling by combining static and dynamic classes, which allows for the management of UI styling based on state or interaction. The project handles a variety of input structures, including arrays and objects, to produce a unified list of act
Provides the logic to map object keys to CSS classes based on the truthiness of their values.
Dies ist eine Bibliothek generativer Modellarchitekturen, die mit dem TensorFlow-Framework erstellt wurden. Sie bietet Implementierungen für die Erzeugung synthetischer Daten und realistischer Bilder, wobei der Schwerpunkt auf Variational Autoencoders und verschiedenen Varianten von Generative Adversarial Networks (GANs) liegt. Die Sammlung umfasst spezifische GAN-Architekturen wie WGAN-GP, LSGAN, InfoGAN und EBGAN. Sie enthält zudem Variational Autoencoders, die darauf ausgelegt sind, latente Repräsentationen zu erlernen und neue Stichproben aus erlernten Verteilungen zu synthetisieren. Das Projekt deckt Bildverarbeitungspipelines für die Normalisierung und das Zuschneiden von Daten ab sowie ein Toolkit neuronaler Netzwerkschichten, einschließlich 2D-Konvolutionen und linearer Transformationen. Es bietet Funktionen für die Manipulation des latenten Raums, die Injektion von Konditionierungsvektoren und die Modellstabilisierung durch spezifische Verlustfunktionen.
Provides mechanisms to guide image generation by injecting conditioning vectors and labels into the model feature maps.
react-calendar is a customizable date grid and picker for React applications. It provides an interactive interface for selecting single or multiple dates and navigating between months and years. The component uses browser internationalization APIs to format months and days, enabling multilingual date formatting for different global regions. It allows for external customization through prop-driven render overrides to replace default date cell displays. The library handles the underlying date calculations and state-driven navigation required for scheduling interfaces and date-based grids.
Uses conditional logic to map CSS classes to dates based on their selection or disabled state.