Shoelace.Style
1.9.1
dotnet add package Shoelace.Style --version 1.9.1
NuGet\Install-Package Shoelace.Style -Version 1.9.1
<PackageReference Include="Shoelace.Style" Version="1.9.1" />
<PackageVersion Include="Shoelace.Style" Version="1.9.1" />
<PackageReference Include="Shoelace.Style" />
paket add Shoelace.Style --version 1.9.1
#r "nuget: Shoelace.Style, 1.9.1"
#:package Shoelace.Style@1.9.1
#addin nuget:?package=Shoelace.Style&version=1.9.1
#tool nuget:?package=Shoelace.Style&version=1.9.1
Shoelace Style Blazor Components
This repository contains Blazor components built on top of the Shoelace library, enabling developers to use Shoelace UI elements in their Blazor applications.
Getting Started
Prerequisites
- .NET SDK (8.0 or higher)
- A Blazor application (Blazor Server or Blazor WebAssembly)
Installation
Install the nuget package:
dotnet add package Shoelace.Style --version 1.9.1Download the latest version of the <code>@shoelace-style</code> package. We suggest using libman with this configuration:
{ "version": "1.0", "defaultProvider": "jsdelivr", "libraries": [ { "library": "@shoelace-style/shoelace@2.19.1", "destination": "wwwroot/shoelace/", "files": [ "cdn/!(react)/**/*.{js,svg,css}", "cdn/*.js" ] } ] }Add the links to reference the css and js in index.html/App.razor/_Host.cshtml:
<link rel="stylesheet" media="(prefers-color-scheme:light)" href="shoelace/cdn/themes/light.min.css" /> <link rel="stylesheet" media="(prefers-color-scheme:dark)" href="shoelace/cdn/themes/dark.min.css" onload="document.documentElement.classList.add('sl-theme-dark');" /><script src="shoelace/cdn/shoelace-autoloader.min.js" type="module" data-shoelace="/shoelace/cdn"></script>Or follow the instructions in the Installation page of the main site.
Usage
Import the main namespaces inside the _Import.razor file:
@using Shoelace.Style.Components
@using Shoelace.Style.Services
Add the service collection extension in you Program.cs:
builder.Services.AddShoelaceStyle();
Shoelace Components Checklist
- Alert (
<sl-alert>) - Animated Image (
<sl-animated-image>) - Animation (
<sl-animation>) - Avatar (
<sl-avatar>) - Badge (
<sl-badge>) - Breadcrumb (
<sl-breadcrumb>) - Breadcrumb Item (
<sl-breadcrumb-item>) - Button (
<sl-button>) - Button Group (
<sl-button-group>) - Card (
<sl-card>) - Carousel (
<sl-carousel>) - Carousel Item (
<sl-carousel-item>) - Checkbox (
<sl-checkbox>) - Color Picker (
<sl-color-picker>) - Copy Button (
<sl-copy-button>) - Details (
<sl-details>) - Dialog (
<sl-dialog>) - Divider (
<sl-divider>) - Drawer (
<sl-drawer>) - Dropdown (
<sl-dropdown>) - Format Bytes (
<sl-format-bytes>) - Format Date (
<sl-format-date>) - Format Number (
<sl-format-number>) - Icon (
<sl-icon>) - Icon Button (
<sl-icon-button>) - Image Comparer (
<sl-image-comparer>) - Include (
<sl-include>) - Input (
<sl-input>) - Menu (
<sl-menu>) - Menu Item (
<sl-menu-item>) - Menu Label (
<sl-menu-label>) - Mutation Observer (
<sl-mutation-observer>) - Option (
<sl-option>) - Popup (
<sl-popup>) - Progress Bar (
<sl-progress-bar>) - Progress Ring (
<sl-progress-ring>) - QR Code (
<sl-qr-code>) - Radio (
<sl-radio>) - Radio Button (
<sl-radio-button>) - Radio Group (
<sl-radio-group>) - Range (
<sl-range>) - Rating (
<sl-rating>) - Relative Time (
<sl-relative-time>) - Resize Observer (
<sl-resize-observer>) - Select (
<sl-select>) - Skeleton (
<sl-skeleton>) - Spinner (
<sl-spinner>) - Split Panel (
<sl-split-panel>) - Switch (
<sl-switch>) - Tab (
<sl-tab>) - Tab Group (
<sl-tab-group>) - Tab Panel (
<sl-tab-panel>) - Tag (
<sl-tag>) - Textarea (
<sl-textarea>) - Tooltip (
<sl-tooltip>) - Tree (
<sl-tree>) - Tree Item (
<sl-tree-item>) - Visually Hidden (
<sl-visually-hidden>)
Contributing
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new feature branch (
git checkout -b feature/YourFeature). - Make your changes and commit them (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature/YourFeature). - Open a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Acknowledgments
Contact
For questions or support, please contact Koja Dennis.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Blazor.Javascript.Interop.Extensions (>= 1.0.4)
- Microsoft.AspNetCore.Components.Web (>= 8.0.8)
-
net9.0
- Blazor.Javascript.Interop.Extensions (>= 1.0.4)
- Microsoft.AspNetCore.Components.Web (>= 9.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|
Initial release wrapping Shoelace components for Blazor.