4 repository-uri
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.
Aceasta este o bibliotecă de arhitecturi de modele generative construite folosind framework-ul TensorFlow. Oferă implementări pentru producerea de date sintetice și imagini realiste, concentrându-se în mod specific pe Variational Autoencoders și diverse variante de Generative Adversarial Networks (GAN). Colecția include arhitecturi GAN specifice, cum ar fi WGAN-GP, LSGAN, InfoGAN și EBGAN. De asemenea, conține Variational Autoencoders concepute pentru a învăța reprezentări latente și a sintetiza noi mostre din distribuții învățate. Proiectul acoperă pipeline-uri de procesare a imaginilor pentru normalizarea și decuparea datelor, precum și un set de instrumente de straturi de rețele neuronale, inclusiv convoluții 2D și transformări liniare. Oferă capabilități pentru manipularea spațiului latent, injectarea vectorilor de condiționare și stabilizarea modelelor prin funcții de loss specifice.
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.