Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mhrastegari/blazorcva
Blazor Class Variants Authority
https://github.com/mhrastegari/blazorcva
Last synced: 24 days ago
JSON representation
Blazor Class Variants Authority
- Host: GitHub
- URL: https://github.com/mhrastegari/blazorcva
- Owner: mhrastegari
- Created: 2024-08-13T08:05:08.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-09-01T10:02:02.000Z (4 months ago)
- Last Synced: 2024-10-06T06:41:24.530Z (3 months ago)
- Language: C#
- Homepage: https://mhrastegari.github.io/BlazorCVA/
- Size: 8.37 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BlazorCVA
BlazorCVA is a library designed to simplify the management of CSS classes in Blazor applications. Inspired by the [Class Variance Authority (CVA)](https://cva.style/), BlazorCVA provides a type-safe, flexible way to manage and apply CSS classes based on component variants, ensuring a clean and maintainable approach to styling.
## Introduction
In modern UI development, Some developers need full control over their stylesheets, prefer using frameworks like Tailwind CSS, or simply enjoy writing their own CSS. When working with traditional CSS, managing variants—matching classes to props and handling types—can become cumbersome.
BlazorCVA aims to streamline this process by addressing these pain points. With BlazorCVA, you can focus on the fun aspects of UI development without getting bogged down by the intricacies of CSS variant management.
## Features
- **Type-Safe Variants:** Define and manage CSS classes based on component variants with type safety.
- **Flexible Conditions:** Use simple values or custom predicates to create complex variant conditions.
- **Seamless Integration:** Easily integrate with Blazor components and manage dynamic class names.