Create A Blazor Toggle Switch Button In Blazor Server App
The Blazor Toggle Switch Button is a custom HTML5 input-type checkbox component that allows you to perform a toggle (on/off) action between checked and unchecked states. A quick start blazor server app that allows you to configure the Blazor Toggle Switch Button component from Syncfusion with its available options. This project contains simple code customizations, as well as some important features such as switching between checked and unchecked states, setting disabled state, and toggle method.
Prerequisites
- Visual Studio 2022
How to run the project
- Checkout this project to a location in your disk.
- Open the solution file using the Visual Studio 2022.
- Restore the NuGet packages by rebuilding the solution.
- Run the project.
Features and benefits
Toggle ON-OFF States
A single switch consists of a toggle state that can be checked and unchecked. To prevent the toggling of switch value, you can make use of disable option.
Change Switch Size
You can make use of different switch sizes, default and small, as required in your application.
Custom Switch labels, colors and width
The Blazor Toggle Switch Button Component appearance (bar and handle) has support for complete customization. A switch can contain text to represent the checked/unchecked states (ON-OFF). It is customized to make the look and feel like
- Windows Switch
- iOS Switch
- Android Switch
Forms support
Seamlessly supports HTML forms, template-driven forms (Angular), and reactive forms.
Related links
Learn More about Blazor Toggle Switch Button
Suggest a feature or report a bug
About Syncfusion Blazor Components
The Syncfusion's Blazor components library offers over 70 UI components to work with Blazor server-side and client-side (Blazor WebAssembly) projects seamlessly. In addition to Toggle Switch Button, we provide popular Blazor Components such as DataGrid, Charts, Scheduler, Diagram, and Word Processor.
About Syncfusion
Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 28,000 customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.
Today, we provide 1700+ components and frameworks for web (Blazor, ASP.NET Core, ASP.NET MVC, ASP.NET WebForms, JavaScript, Angular, React, Vue, and Flutter), mobile (Xamarin, Flutter, UWP, JavaScript, and .NET MAUI), and desktop development (WinForms, WPF, WinUI, Flutter, UWP, and .NET MAUI). We provide ready-to-deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.
[email protected] | www.syncfusion.com | Toll Free: 1-888-9 DOTNET