All Projects → ctrl-alt-d → blazor-dom-confetti

ctrl-alt-d / blazor-dom-confetti

Licence: MIT license
Celebrate success with dom confetti on Blazor projects!

Programming Languages

HTML
75241 projects
C#
18002 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to blazor-dom-confetti

BethanysPieShopHR
Server-side Blazor project
Stars: ✭ 45 (+181.25%)
Mutual labels:  blazor
Fun.Blazor
Powered by .NET blazor!!! ❤ F#
Stars: ✭ 107 (+568.75%)
Mutual labels:  blazor
NodaTimePicker
A Date/Time picker component library for Blazor using NodaTime
Stars: ✭ 49 (+206.25%)
Mutual labels:  blazor
MvvmBlazor
A lightweight Blazor Mvvm Library
Stars: ✭ 203 (+1168.75%)
Mutual labels:  blazor
BlazorTimeline
Responsive, vertical timeline component.
Stars: ✭ 56 (+250%)
Mutual labels:  blazor
BlazoredLocalStorage
This library has been moved to the Blazored org
Stars: ✭ 26 (+62.5%)
Mutual labels:  blazor
sotsera.blazor.oidc
OpenID Connect client for Blazor client-side projects
Stars: ✭ 21 (+31.25%)
Mutual labels:  blazor
Fritz.HatCollection
A static website that displays a collection of Fritz's Hats
Stars: ✭ 21 (+31.25%)
Mutual labels:  blazor
XAF Security E4908
This repository contains examples for Role-based Access Control, Permission Management, and OData / Web / REST API Services for Entity Framework and XPO ORM
Stars: ✭ 47 (+193.75%)
Mutual labels:  blazor
BlazorSvgHelper
All Blazor Demos
Stars: ✭ 36 (+125%)
Mutual labels:  blazor
TabBlazor
Blazor admin template based on Tabler UI
Stars: ✭ 222 (+1287.5%)
Mutual labels:  blazor
BlazorEFCoreMultitenant
Examples of multitenancy using EF Core and Blazor.
Stars: ✭ 67 (+318.75%)
Mutual labels:  blazor
blazor-validation
Validation extensions for Microsoft Blazor / FluentValidation
Stars: ✭ 142 (+787.5%)
Mutual labels:  blazor
Amazing-Favorites
Amazing Favorites is a browser extension to help you to manage you bookmarks efficiently.
Stars: ✭ 48 (+200%)
Mutual labels:  blazor
timewarp-templates
A distributed application template for dotnet. Utilizing Blazor, Web API, gRPC, Tye, YARP etc.
Stars: ✭ 37 (+131.25%)
Mutual labels:  blazor
blazorators
This project converts TypeScript type declarations into C# representations, and use C# source generators to expose automatic JavaScript interop functionality.
Stars: ✭ 225 (+1306.25%)
Mutual labels:  blazor
MudBlazor
Blazor Component Library based on Material design with an emphasis on ease of use. Mainly written in C# with Javascript kept to a bare minimum it empowers .NET developers to easily debug it if needed.
Stars: ✭ 4,539 (+28268.75%)
Mutual labels:  blazor
Blazor-CRUD-With-CloudFirestore
Single Page Application (SPA) using Blazor with the help of Google Cloud Firestore as Database provider
Stars: ✭ 34 (+112.5%)
Mutual labels:  blazor
BlazorSimpleSurvey
Blazor Simple Survey
Stars: ✭ 39 (+143.75%)
Mutual labels:  blazor
Blazor.PersianDatePicker
A free JavaScript Jalali (Persian) and Gregorian (Miladi) dual datepicker library for Blazor applications
Stars: ✭ 40 (+150%)
Mutual labels:  blazor

blazor-dom-confetti

blazor-dom-confetti is a blazor wraper component for dom-confetti.

ScreenShot

Can I see a live demo? Yes, at https://blazorrepl.com/repl/wluQmuPX38bvbL8n28

QuickStart

Install blazor-dom-confetti via nuget with your favorite method:

  • .net cli: dotnet add package blazor-dom-confetti --version 0.0.0.5
  • Package reference: <PackageReference Include="blazor-dom-confetti" Version="0.0.0.5" />
  • Package manager: Install-Package blazor-dom-confetti -Version 0.0.0.5

Use component where you want, just insert <Blafettis @ref="blafettis" /> component where you want to raise confettis, and call blafettis.RaiseConfetti(); method (remember to include namespace using BlafettisLib; or @using BlafettisLib):

@page "/counter"
@using BlafettisLib

<button class="btn btn-primary" @onclick="IncrementCount">
    Click me
    <Blafettis @ref="blafettis" />
</button>

@code {
    private int currentCount = 0;
    protected Blafettis blafettis;  // get the reference

    private void IncrementCount()
    {
        currentCount++;
        blafettis.RaiseConfetti();  // raise confetti via method
    }
}

Personalize your confetti with options (colors, angle, velocity, ...) see demo for a sample https://github.com/ctrl-alt-d/blazor-dom-confetti/blob/main/DemosAndMore/Demos/DemoServerSide/Pages/Options.razor

From version 0.0.0.4 no js includes are needed.

Contributions

  • Be free to PR any feature or bugfix.
  • Be free to post any issue.
  • Be free to star and promote this project and also dom-confetti project.

About

  • License MIT, copyright Dani Herrera. The component blazor-dom-confetti is a wrapper for Daniel Lundin's dom-confetti project. dom-confetti's code is included on bundle.js for devs convinience.

What about a native blazor version

A blazor native version, without javascript, wrote 100% on c# and html is available at ./DemosAndMore/dom.confetti-blazor-native-component/blazor-blazor-confetti. It is a 100% JS free native blazor component. This component is a clone of dom-confetti but without javascript, just Blazor. Not ready for production.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].