### Installation Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Icons.Lucide/README.md Install the BlazorBlueprint.Icons.Lucide package using the .NET CLI. ```APIDOC ## Installation Install the BlazorBlueprint.Icons.Lucide package using the .NET CLI. ```bash dotnet add package BlazorBlueprint.Icons.Lucide ``` ``` -------------------------------- ### BlazorHeroicons Installation Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Icons.Heroicons/README.md Instructions on how to install the BlazorHeroicons package using the .NET CLI. ```APIDOC ## Installation ```bash dotnet add package BlazorBlueprint.Icons.Heroicons ``` ``` -------------------------------- ### Install Heroicons Package Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Icons.Heroicons/README.md Use the .NET CLI to add the package to your project. ```bash dotnet add package BlazorBlueprint.Icons.Heroicons ``` -------------------------------- ### Install Icon Libraries Source: https://github.com/blazorblueprintui/ui/blob/main/README.md Add optional icon library packages to your project. ```bash dotnet add package BlazorBlueprint.Icons.Lucide # 1,640+ icons dotnet add package BlazorBlueprint.Icons.Heroicons # 1,288 icons (4 variants) dotnet add package BlazorBlueprint.Icons.Feather # 286 icons ``` -------------------------------- ### Top Drawer Example Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/Drawer/directions.txt This example demonstrates how to implement a drawer that slides in from the top. It includes a trigger button and a content area with a header, title, and description. ```cshtml Top Top Drawer This slides from the top. ``` -------------------------------- ### Build Project Source: https://github.com/blazorblueprintui/ui/blob/main/CONTRIBUTING.md Build the project to verify dependencies are installed and the project compiles successfully. ```bash dotnet build ``` -------------------------------- ### Initialize Project Template Source: https://github.com/blazorblueprintui/ui/blob/main/README.md Install the project templates and create a new Blazor Blueprint application. ```bash dotnet new install BlazorBlueprint.Templates dotnet new blazorblueprint -n MyApp ``` -------------------------------- ### PortalService Runtime Warning Example Source: https://github.com/blazorblueprintui/ui/blob/main/V3-MIGRATION-GUIDE.md Example of the LogLevel.Warning emitted by PortalService when no BbPortalHost is detected in the layout. ```log warn: BlazorBlueprint.Primitives.Services.PortalService[1] BlazorBlueprint: No detected. Portal-based components (Dialog, Select, Popover, etc.) require a in your layout to render. Add to your MainLayout.razor. ``` -------------------------------- ### Input Group with Start and End Addons Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/InputGroup/basic.txt This example demonstrates an input group with addons at both the start and end. It's suitable for email inputs with validation icons. Requires LucideIcon component. ```razor ``` -------------------------------- ### Advanced Icon Usage Examples Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Icons.Heroicons/README.md Examples covering custom classes, accessibility, and data attributes. ```razor ``` ```razor ``` ```razor ``` ```razor ``` ```razor ``` ```razor ``` ```razor ``` -------------------------------- ### Install BlazorBlueprint.Components Package Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Components/README.md Add the BlazorBlueprint.Components NuGet package to your project using the .NET CLI. ```bash dotnet add package BlazorBlueprint.Components ``` -------------------------------- ### Install Tailwind CSS CLI (Linux/macOS) Source: https://github.com/blazorblueprintui/ui/blob/main/CONTRIBUTING.md Download the Tailwind CSS standalone CLI binary using the provided installation script for Linux or macOS. ```bash cd tools ./install.sh ``` -------------------------------- ### Add BlazorBlueprint.Primitives Package Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Primitives/README.md Install the BlazorBlueprint.Primitives NuGet package using the .NET CLI. ```bash dotnet add package BlazorBlueprint.Primitives ``` -------------------------------- ### Basic Input Group with Start Addon Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/InputGroup/basic.txt Use this snippet to create an input group with a starting addon, such as a search icon. Ensure the LucideIcon component is available. ```razor ``` -------------------------------- ### Basic Dialog Example Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Components/README.md Demonstrates how to implement a basic dialog with a trigger button, header, content, and footer. ```razor Open Dialog Confirm Action Are you sure you want to proceed?

This action cannot be undone.

Cancel Confirm
``` -------------------------------- ### Install Blazor Blueprint Packages Source: https://github.com/blazorblueprintui/ui/blob/main/README.md Add the required NuGet packages for styled components or headless primitives to your .NET project. ```bash # Styled components (includes Primitives) dotnet add package BlazorBlueprint.Components # Or just headless primitives for custom styling dotnet add package BlazorBlueprint.Primitives ``` -------------------------------- ### v2 CommandDialog Boilerplate Source: https://github.com/blazorblueprintui/ui/blob/main/V3-MIGRATION-GUIDE.md Demonstrates the manual setup for a command palette with keyboard shortcut registration in v2. ```razor @inject IKeyboardShortcutService KeyboardShortcuts @implements IDisposable No results found. Profile Settings @code { private bool _isOpen; private IDisposable? _shortcutRegistration; protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) { _shortcutRegistration = await KeyboardShortcuts.RegisterAsync("Ctrl+K", () => { _isOpen = !_isOpen; StateHasChanged(); return Task.CompletedTask; }); } } private void HandleSelect(string value) { _isOpen = false; // handle selection... } public void Dispose() => _shortcutRegistration?.Dispose(); } ``` -------------------------------- ### Install Tailwind CSS CLI (Windows) Source: https://github.com/blazorblueprintui/ui/blob/main/CONTRIBUTING.md Download the Tailwind CSS standalone CLI binary using the provided installation script for Windows PowerShell. ```powershell cd tools .\install.ps1 ``` -------------------------------- ### Install BlazorBlueprint.Icons.Lucide Package Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Icons.Lucide/README.md Use the .NET CLI to add the Lucide icon package to your Blazor project. ```bash dotnet add package BlazorBlueprint.Icons.Lucide ``` -------------------------------- ### Skeleton Examples Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Components/README.md Demonstrates rectangular and circular skeleton loaders. The shape and class can be customized. ```razor ``` -------------------------------- ### Basic LineChart Example Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Components/Components/Chart/README.md A fundamental example of a LineChart with X and Y axes, tooltip, legend, and two data series (desktop and mobile). Includes sample data definition. ```razor @code { private record MonthlyData(string Month, int Desktop, int Mobile); private List data = [ new("Jan", 186, 80), new("Feb", 305, 200), new("Mar", 237, 120), new("Apr", 73, 190), new("May", 209, 130), new("Jun", 214, 140) ]; } ``` -------------------------------- ### Install BlazorBlueprint.Icons.Feather Package Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Icons.Feather/README.md Use the dotnet CLI to add the Feather icon package to your Blazor project. ```bash dotnet add package BlazorBlueprint.Icons.Feather ``` -------------------------------- ### Component Prefixing: After Source: https://github.com/blazorblueprintui/ui/blob/main/V3-MIGRATION-GUIDE.md Example of Blazor component usage after applying the 'Bb' prefix. ```razor Open Title Description ``` -------------------------------- ### Render a Basic Icon (Component API Example) Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Icons.Lucide/README.md Demonstrates the most basic usage of the LucideIcon component, specifying only the required 'Name' parameter. ```razor ``` -------------------------------- ### v2 _Imports.razor Example Source: https://github.com/blazorblueprintui/ui/blob/main/V3-MIGRATION-GUIDE.md Shows the multiple namespace imports required in v2 for Blazor Blueprint components and primitives. ```razor @using BlazorBlueprint.Components @using BlazorBlueprint.Components.Button @using BlazorBlueprint.Components.Input @using BlazorBlueprint.Components.Dialog @using BlazorBlueprint.Components.Sheet @using BlazorBlueprint.Components.Accordion @using BlazorBlueprint.Components.Tabs @using BlazorBlueprint.Components.Select @using BlazorBlueprint.Components.Avatar @using BlazorBlueprint.Components.Badge @using BlazorBlueprint.Primitives.Services ``` -------------------------------- ### Using BbButton Component Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Components/README.md Example of how to use the BbButton component with a default variant. ```razor Click me ``` -------------------------------- ### BlazorHeroicons Advanced Examples Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Icons.Heroicons/README.md Demonstrates advanced usage patterns for the HeroIcon component, including accessibility, custom classes, and data attributes. ```APIDOC ## Advanced Examples **Basic Icon (Outline):** ```razor ``` **Solid Icon:** ```razor ``` **Mini Icon with Custom Color:** ```razor ``` **Micro Icon with Custom Size:** ```razor ``` **Icon with Custom CSS Classes:** ```razor ``` **Accessible Icon-Only Button:** ```razor ``` **Icon with Data Attributes:** ```razor ``` ``` -------------------------------- ### Use Blazor Blueprint components Source: https://github.com/blazorblueprintui/ui/blob/main/README.md Example usage of the Button and Dialog components within a Razor file. ```razor Click me Open Dialog Welcome Beautiful Blazor components inspired by shadcn/ui. Close ``` -------------------------------- ### FormFieldSelect Component: Options Mode (v3 - Alternative) Source: https://github.com/blazorblueprintui/ui/blob/main/V3-MIGRATION-GUIDE.md An alternative v3 example for FormFieldSelect using the Options approach, demonstrating the simplified setup for data binding. ```razor @code { private readonly SelectOption[] _countryOptions = [ new("us", "United States"), new("ca", "Canada") ]; } ``` -------------------------------- ### Add MCP Server via npx Source: https://github.com/blazorblueprintui/ui/blob/main/README.md Install the MCP server for AI integration using the npx package manager. ```bash npx blazorblueprint add mcp-server ``` -------------------------------- ### Guid Select with Options Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/Select/value-label-pairs.txt This snippet demonstrates how to use the Select component with Guid values. It includes binding to a selected Guid value and providing a list of project options. ```csharp private readonly SelectOption[] projectOptions = [ new(Project1Id, "Website Redesign"), new(Project2Id, "Mobile App"), new(Project3Id, "API Migration") ]; ``` ```razor ``` -------------------------------- ### BlazorHeroicons Basic Usage Examples Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Icons.Heroicons/README.md Illustrates how to import the namespace and render Heroicons in various ways, including different variants, sizes, and colors. ```APIDOC ## Basic Usage ### Import the Namespace Add to `_Imports.razor`: ```razor @using BlazorBlueprint.Icons.Heroicons.Components ``` ### Render an Icon ```razor @* Default variant (Outline) *@ ``` ### Use Different Variants ```razor @* Outline variant (24x24) - default *@ @* Solid variant (24x24) *@ @* Mini variant (20x20) *@ @* Micro variant (16x16) *@ ``` ### Customize Size and Color ```razor ``` ### Use with CSS Variables (Theming) ```razor ``` ### Icon-Only Button (with Accessibility) ```razor ``` ### Integration with BlazorBlueprint Button Component ```razor ``` ``` -------------------------------- ### Run Tests with xunit and Verify Source: https://github.com/blazorblueprintui/ui/blob/main/CLAUDE.md Executes all tests in the solution, including xunit and Verify snapshot tests. Use 'normal' verbosity to see test output. ```bash dotnet test tests/BlazorBlueprint.Tests/BlazorBlueprint.Tests.csproj --verbosity normal ``` -------------------------------- ### Blazor Context Menu Example Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/ContextMenu/labels-and-groups.txt Demonstrates how to implement a context menu with various options. Use this component to provide a right-click menu for specific elements. ```cshtml
Right click here
Edit Cut Copy View Zoom In
``` -------------------------------- ### Implement BbTooltip with Top Start Alignment Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Primitives/Tooltip/alignment.txt Displays a tooltip positioned at the top start of the trigger element. ```razor Top Start Aligned to start ``` -------------------------------- ### Blazor Card Component Example Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/Card/action-buttons.txt Demonstrates the structure and usage of the BbCard component, including header, content, and footer with buttons. ```razor Create Project Deploy your new project in one-click.

Your project will be created with default settings.

Cancel Deploy
``` -------------------------------- ### Conventional Commits Examples Source: https://github.com/blazorblueprintui/ui/blob/main/CONTRIBUTING.md Examples of commit messages following the Conventional Commits specification for different types of changes. ```git feat(Combobox): add SearchQuery parameter for async filtering fix(InputOTP): implement paste support via JS interop docs: add CONTRIBUTING.md ``` -------------------------------- ### Align BbDropdownMenuContent to Start Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/DropdownMenu/alignment.txt Use BbDropdownMenuContent with Align set to PopoverAlign.Start to align the dropdown menu content to the start. ```razor Item 1 ``` -------------------------------- ### Left Sheet Example Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Primitives/Sheet/sides.txt Example of a sheet component sliding in from the left. The ellipsis indicates similar structure to the top sheet. ```razor ... ``` -------------------------------- ### Bottom Sheet Example Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Primitives/Sheet/sides.txt Example of a sheet component sliding in from the bottom. The ellipsis indicates similar structure to the top sheet. ```razor ... ``` -------------------------------- ### Right Sheet Example Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Primitives/Sheet/sides.txt Example of a sheet component sliding in from the right side. The ellipsis indicates similar structure to the top sheet. ```razor ... ``` -------------------------------- ### BbFormFieldMultiSelect Example Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/FormFieldMultiSelect/disabled.txt Example of using BbFormFieldMultiSelect with string values, predefined options, and specific styling. The component is disabled and requires specific skills. ```razor ``` -------------------------------- ### Basic Blazor Dialog Implementation Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/Dialog/simple.txt Demonstrates the basic structure of a Blazor dialog using BbDialog, BbDialogTrigger, and BbDialogContent components. This setup includes a header with a title and description. ```razor Open Dialog Are you absolutely sure? This action cannot be undone. ``` -------------------------------- ### BbFormFieldInputOTP Example Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/FormFieldInputOTP/disabled.txt Example of using the BbFormFieldInputOTP component with a locked and disabled state. Set the 'Disabled' attribute to 'true' to prevent user interaction. ```razor ``` -------------------------------- ### Pagination: Use Shorthand Parameters Source: https://github.com/blazorblueprintui/ui/blob/main/V3-MIGRATION-GUIDE.md Demonstrates the simplified `BbPagination` component using `TotalPages` and `@bind-CurrentPage` for automatic rendering of prev/pages/next navigation. ```diff - - - - @for (var i = 1; i <= _totalPages; i++) - { - var page = i; - - - @page - - - } - - - + ``` -------------------------------- ### Accept New API Surface Snapshots Source: https://github.com/blazorblueprintui/ui/blob/main/CLAUDE.md After reviewing .received.txt files, use this command to accept new API surface snapshots by copying them to .verified.txt. This script is located in the ./scripts directory. ```bash ./scripts/run-tests.sh --accept ``` -------------------------------- ### Kanban Board State Initialization Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/Sortable/kanban.txt Initializes the Kanban board with predefined columns and tasks. Includes 'To Do', 'In Progress', and 'Done' columns with sample tasks. ```csharp private List _columns = [ new("To Do", [ new("Design system audit", "High"), new("Update README", "Low"), new("Fix login bug", "High"), ]), new("In Progress", [ new("Build sortable demo", "Medium"), new("Write unit tests", "Medium"), ]), new("Done", [ new("Project setup", "Low"), new("CI pipeline", "Medium"), ]), ]; ``` -------------------------------- ### Run Blazor Blueprint Demo Applications Source: https://github.com/blazorblueprintui/ui/blob/main/README.md Execute demo applications for Blazor Server, WebAssembly, and Auto render modes using the `dotnet run` command. ```bash dotnet run --project demos/BlazorBlueprint.Demo.Server ``` ```bash dotnet run --project demos/BlazorBlueprint.Demo.Wasm ``` ```bash dotnet run --project demos/BlazorBlueprint.Demo.Auto ``` -------------------------------- ### Render an Accessible Icon-Only Button (API Example) Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Icons.Feather/README.md Provides an example of an icon-only button where accessibility is handled by the `AriaLabel` parameter, which is applied directly to the icon's SVG element. ```razor ``` -------------------------------- ### Build Blazor Components Project Source: https://github.com/blazorblueprintui/ui/blob/main/CLAUDE.md Use this command to build the Components project, which is common during development. It uses a quiet verbosity level. ```bash dotnet build src/BlazorBlueprint.Components/BlazorBlueprint.Components.csproj --nologo --verbosity quiet ``` -------------------------------- ### Bind Guid Value and Handle Parse Errors in BbInputField Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/InputField/guid.txt Use @bind-Value to bind a Guid property and OnParseError to handle invalid format. The component's HasParseError property can be used to conditionally display error messages. ```razor @if (_guidInput?.HasParseError == true) {

Invalid GUID format.

} ``` -------------------------------- ### Test Release Workflow with NUGET_API_KEY Source: https://github.com/blazorblueprintui/ui/blob/main/RELEASE.md After setting up the NUGET_API_KEY in GitHub Secrets, run this command to test the release script and verify the workflow. ```bash ./scripts/release-primitives.sh 1.0.0-beta.1 ``` -------------------------------- ### Blazor Multi-Select Form Field Example Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/FormFieldMultiSelect/non-string.txt Demonstrates how to use the BbFormFieldMultiSelect component with integer values. Configure options, bind selected values, and set various UI properties like labels and placeholders. The example also shows how to define the data source for the select options. ```razor @code { private IEnumerable? _selectedPermissions; private readonly SelectOption[] _permissions = [ new(1, "Read"), new(2, "Write"), new(3, "Delete"), new(4, "Admin") ]; // _permissions.GetTexts(_selectedPermissions) } ``` -------------------------------- ### Separator Example Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Components/README.md A simple separator component that can be oriented horizontally or vertically. ```razor ``` -------------------------------- ### LineChart Example Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Components/Components/Chart/README.md Demonstrates how to create a line chart with multiple data series. Configure axes, tooltips, and line styles using nested components. Ensure data is provided via the `Data` parameter. ```razor ``` -------------------------------- ### FormFieldMultiSelect v2 Example Source: https://github.com/blazorblueprintui/ui/blob/main/V3-MIGRATION-GUIDE.md v2 usage of FormFieldMultiSelect with Items, ValueSelector, and DisplaySelector. ```razor ``` -------------------------------- ### Basic BbSheet Implementation Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/Sheet/side-right.txt Demonstrates the basic structure of the BbSheet component, including a trigger button, header with title and description, and a footer with an action button. No specific setup or imports are required beyond the component's availability. ```html Open Sheet Edit profile Make changes to your profile here. Save changes ``` -------------------------------- ### Basic Context Menu Implementation Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/ContextMenu/icon-shorthand.txt This snippet demonstrates how to create a basic context menu. It includes a trigger element and a content area with menu items. Ensure you have the necessary Icon and LucideIcon components available. ```razor
Right click here
Cut Copy
``` -------------------------------- ### Component Prefixing: Before Source: https://github.com/blazorblueprintui/ui/blob/main/V3-MIGRATION-GUIDE.md Example of Blazor component usage before the 'Bb' prefix was introduced. ```razor Title Description ``` -------------------------------- ### Basic Blazor Timeline Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/Timeline/heading-composition.txt Demonstrates a simple timeline with a heading and description for each item. Use this for straightforward event logging. ```cshtml Project Kickoff Initial planning and team formation. ``` -------------------------------- ### Default BbBadge Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/Badge/notification-dot.txt A basic BbBadge with a dot indicator. No special setup is required. ```html Default ``` -------------------------------- ### Basic Select Component Usage Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Primitives/Select/basic.txt Demonstrates the basic setup of the BbSelect component with string values. Configure item styling using ItemClass and trigger/content appearance with specific classes. ```razor @using BlazorBlueprint.Primitives.Select @* Value is the data value (hidden). Text is the display text shown in trigger. ItemClass applies shared styling to all items. *@ ``` -------------------------------- ### Basic Form Wizard Implementation Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/FormWizard/controlled.txt Demonstrates a basic Blazor Form Wizard with three steps: Overview, Details, and Summary. Use the BbButton components to navigate between steps programmatically. ```razor
Go to Step 1 Go to Step 2 Go to Step 3

This is the overview step.

This is the details step.

This is the summary step.

``` -------------------------------- ### Run Blazor Blueprint Demo Apps Source: https://github.com/blazorblueprintui/ui/blob/main/CLAUDE.md Commands to run the different demo applications for Blazor Blueprint, each on a specific port. ```bash dotnet run --project demos/BlazorBlueprint.Demo.Server # port 7172 ``` ```bash dotnet run --project demos/BlazorBlueprint.Demo.Wasm # port 7173 ``` ```bash dotnet run --project demos/BlazorBlueprint.Demo.Auto # port 7174 ``` -------------------------------- ### v2 AlertDialog for Confirmations Source: https://github.com/blazorblueprintui/ui/blob/main/V3-MIGRATION-GUIDE.md Illustrates the manual AlertDialog setup for a confirmation flow in v2. This approach requires more markup for simple confirmations. ```razor Are you sure? This action cannot be undone. Cancel Delete @code { private bool _showDeleteDialog; private async Task HandleDelete(MouseEventArgs e) { // perform delete } } ``` -------------------------------- ### SelectItem TextValue Renamed to Text Source: https://github.com/blazorblueprintui/ui/blob/main/V3-MIGRATION-GUIDE.md Example of renaming the primitive-layer SelectItem.TextValue parameter to Text for consistency. ```diff - Apple + ``` -------------------------------- ### Blazor Form Wizard Example Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/FormWizard/optional.txt Demonstrates the structure of a Blazor Form Wizard with multiple steps, including input fields and optional steps. Ensure DataAnnotationsValidator is included for validation. ```cshtml

You're all set!

``` -------------------------------- ### DialogTrigger With Child Component Source: https://github.com/blazorblueprintui/ui/blob/main/V3-MIGRATION-GUIDE.md Example of BbDialogTrigger when already providing a child component, which requires no changes. ```razor @* This already works — no changes required *@ Open Dialog ``` -------------------------------- ### Basic Dialog with Trigger and Custom Content Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/Dialog/custom-width.txt This example demonstrates how to implement a basic dialog with a trigger button and custom content within the dialog body. The `BbDialogContent` allows for flexible layout, and `BbDialogHeader` can contain titles and descriptions. ```html Open Wide Dialog Wide Dialog This dialog uses a custom max-width class. ``` -------------------------------- ### v3 FormFieldCombobox Component - Compositional Mode Source: https://github.com/blazorblueprintui/ui/blob/main/V3-MIGRATION-GUIDE.md Example of the v3 FormFieldCombobox component in Compositional mode. ```razor United States Canada ``` -------------------------------- ### v3 FormFieldCombobox Component - Options Mode Source: https://github.com/blazorblueprintui/ui/blob/main/V3-MIGRATION-GUIDE.md Example of the v3 FormFieldCombobox component in Options mode. ```razor @code { private readonly SelectOption[] _countryOptions = [ new("us", "United States"), new("ca", "Canada") ]; } ``` -------------------------------- ### Manual NuGet Package Release Source: https://github.com/blazorblueprintui/ui/blob/main/RELEASE.md Fallback procedure for building and publishing packages manually when automation fails. ```bash # Build and pack dotnet pack src/BlazorBlueprint.Primitives/BlazorBlueprint.Primitives.csproj -c Release -o ./packages # Publish to NuGet dotnet nuget push ./packages/BlazorBlueprint.Primitives.*.nupkg --api-key YOUR_API_KEY --source https://api.nuget.org/v3/index.json ``` -------------------------------- ### v2 FormFieldCombobox Component Source: https://github.com/blazorblueprintui/ui/blob/main/V3-MIGRATION-GUIDE.md Example of the v2 FormFieldCombobox component using Items, ValueSelector, and DisplaySelector. ```razor ``` -------------------------------- ### Blazor Dialog with Dropdown Example Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/Dialog/dropdown-controls.txt Demonstrates how to create a Blazor dialog with a dropdown. Ensure the 'BbSelect' and 'BbDialog' components are correctly imported and configured. ```razor Open Dialog with Dropdowns Nested Dropdown Controls
Apple
``` -------------------------------- ### Basic Usage Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Icons.Lucide/README.md Learn how to import the necessary namespace and render icons in your Blazor components. ```APIDOC ## Basic Usage ### Import the Namespace Add to `_Imports.razor`: ```razor @using BlazorBlueprint.Icons.Lucide.Components ``` ### Render an Icon ```razor ``` ### Customize Size and Color ```razor ``` ### Use with CSS Variables (Theming) ```razor ``` ### Icon-Only Button (with Accessibility) ```razor ``` ### Integration with BlazorBlueprint Button Component ```razor ``` ``` -------------------------------- ### v2 MultiSelect Component Source: https://github.com/blazorblueprintui/ui/blob/main/V3-MIGRATION-GUIDE.md Example of the v2 MultiSelect component using Items, ValueSelector, and DisplaySelector. ```razor @code { private IEnumerable? selectedValues; private List frameworks = new() { new("blazor", "Blazor"), new("react", "React"), new("vue", "Vue.js") }; public record Framework(string Value, string Label); } ``` -------------------------------- ### Run Package Release Scripts Source: https://github.com/blazorblueprintui/ui/blob/main/RELEASE.md Execute these scripts to initiate the release process for individual Blazor Blueprint packages. Specify the desired version as an argument. ```bash ./scripts/release-primitives.sh 1.0.0-beta.4 ./scripts/release-components.sh 1.1.0-beta.2 ./scripts/release-icons-lucide.sh 1.0.3 ./scripts/release-icons-heroicons.sh 1.0.0-beta.1 ./scripts/release-icons-feather.sh 1.0.0-beta.1 ``` -------------------------------- ### Uncontrolled Dialog Example Source: https://github.com/blazorblueprintui/ui/blob/main/src/BlazorBlueprint.Primitives/README.md Demonstrates an uncontrolled dialog component where the component manages its own open/closed state. ```razor Open Content ``` -------------------------------- ### Complete Blazor Blueprint UI Theme Example Source: https://github.com/blazorblueprintui/ui/blob/main/THEMING.md This CSS file defines all theme variables for both light and dark modes. Customize these variables to create your own theme. ```css /* my-theme.css */ :root { /* Core */ --background: oklch(1 0 0); --foreground: oklch(0.145 0 0); /* Semantic */ --primary: oklch(0.205 0 0); --primary-foreground: oklch(0.985 0 0); --secondary: oklch(0.97 0 0); --secondary-foreground: oklch(0.205 0 0); --destructive: oklch(0.577 0.245 27.325); --destructive-foreground: oklch(1 0 0); --muted: oklch(0.97 0 0); --muted-foreground: oklch(0.556 0 0); --accent: oklch(0.97 0 0); --accent-foreground: oklch(0.205 0 0); /* UI Elements */ --border: oklch(0.922 0 0); --input: oklch(0.922 0 0); --ring: oklch(0.708 0 0); /* Components */ --card: oklch(1 0 0); --card-foreground: oklch(0.145 0 0); --popover: oklch(1 0 0); --popover-foreground: oklch(0.145 0 0); /* Sizing */ --radius: 0.5rem; } .dark { /* Core */ --background: oklch(0.145 0 0); --foreground: oklch(0.985 0 0); /* Semantic */ --primary: oklch(0.985 0 0); --primary-foreground: oklch(0.205 0 0); --secondary: oklch(0.269 0 0); --secondary-foreground: oklch(0.985 0 0); --destructive: oklch(0.396 0.141 25.723); --destructive-foreground: oklch(0.985 0 0); --muted: oklch(0.269 0 0); --muted-foreground: oklch(0.708 0 0); --accent: oklch(0.269 0 0); --accent-foreground: oklch(0.985 0 0); /* UI Elements */ --border: oklch(0.269 0 0); --input: oklch(0.269 0 0); --ring: oklch(0.556 0 0); /* Components */ --card: oklch(0.145 0 0); --card-foreground: oklch(0.985 0 0); --popover: oklch(0.145 0 0); --popover-foreground: oklch(0.985 0 0); } ``` -------------------------------- ### Blazor EditForm with Input Group Source: https://github.com/blazorblueprintui/ui/blob/main/demos/BlazorBlueprint.Demo.Shared/CodeExamples/Components/InputGroup/editform-validation.txt Example of an EditForm using BbInputGroup for email input with validation. ```cshtml ```