Soenneker.Quark.Fields 3.0.23

Prefix Reserved
dotnet add package Soenneker.Quark.Fields --version 3.0.23
                    
NuGet\Install-Package Soenneker.Quark.Fields -Version 3.0.23
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Quark.Fields" Version="3.0.23" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Quark.Fields" Version="3.0.23" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Quark.Fields" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Quark.Fields --version 3.0.23
                    
#r "nuget: Soenneker.Quark.Fields, 3.0.23"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Quark.Fields@3.0.23
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Quark.Fields&version=3.0.23
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Quark.Fields&version=3.0.23
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Quark.Fields

A series of Blazor Quark components for form field layouts and structure.

Installation

dotnet add package Soenneker.Quark.Fields

Components

Field

A layout/structural component that groups a label, input, and optional help/validation messages together in a consistent way. Often used for form rows where you want a label on top/side and the input underneath, styled according to the CSS framework.

FieldLabel

A label component that can be associated with form inputs. Supports required indicators and horizontal layout modes.

FieldBody

A container component for input elements when using horizontal field layouts.

FieldHelp

A component for displaying help text below form inputs.

Usage

Basic Field Layout

<Field>
    <FieldLabel For="textInput">Text Input</FieldLabel>
    <input type="text" id="textInput" class="form-control" placeholder="Enter text..." />
    <FieldHelp>This is help text for the text input field.</FieldHelp>
</Field>

Horizontal Field Layout

<Field Horizontal="true">
    <FieldLabel For="emailInput" RequiredIndicator="true">Email Address</FieldLabel>
    <FieldBody>
        <input type="email" id="emailInput" class="form-control" placeholder="Enter email..." />
        <FieldHelp>We'll never share your email with anyone else.</FieldHelp>
    </FieldBody>
</Field>

Form Example

<form>
    <Field>
        <FieldLabel For="firstName" RequiredIndicator="true">First Name</FieldLabel>
        <input type="text" id="firstName" class="form-control" placeholder="Enter your first name" />
    </Field>
    
    <Field Horizontal="true">
        <FieldLabel For="newsletter">Newsletter</FieldLabel>
        <FieldBody>
            <div class="form-check">
                <input type="checkbox" id="newsletter" class="form-check-input" />
                <label for="newsletter" class="form-check-label">Subscribe to our newsletter</label>
            </div>
            <FieldHelp>Get updates about new products and special offers.</FieldHelp>
        </FieldBody>
    </Field>
</form>

Features

  • Layout Support: Both vertical and horizontal field layouts
  • Required Indicators: Visual indicators for required fields
  • Help Text: Consistent styling for help text
  • Bootstrap 5 Compatible: Uses Bootstrap 5 CSS classes for consistent styling
  • Quark Components: Built using Quark.Divs, Quark.Labels, and Quark.Spans for consistency
  • Built-in Styling: Components include default spacing and styling that can be overridden
  • Accessibility: Proper label associations and semantic HTML structure

CSS Classes and Default Styling

The components use Bootstrap 5 CSS classes with built-in default styling:

  • Field: form-group (base), row (horizontal)
    • Default: margin-bottom: 1.5rem
    • Horizontal: display: flex; align-items: flex-start; gap: 1rem
  • FieldLabel: form-label (base), col-form-label (horizontal)
    • Default: margin-bottom: 0.5rem; font-weight: 500
    • Horizontal: padding-top: calc(0.375rem + 1px); padding-bottom: calc(0.375rem + 1px); margin-bottom: 0; font-weight: 500
  • FieldBody: No classes (Bootstrap 5 doesn't require them)
  • FieldHelp: form-text text-muted
    • Default: margin-top: 0.25rem; font-size: 0.875em

All default styling can be overridden by passing custom Style or Class parameters to the components.

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Quark.Fields:

Package Downloads
Soenneker.Quark.Suite

The entire suite of Quark elements, all in one library.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.23 131 9/21/2025
3.0.22 55 9/21/2025
3.0.21 71 9/20/2025
3.0.20 84 9/20/2025
3.0.19 196 9/19/2025
3.0.18 190 9/19/2025
3.0.17 477 9/19/2025
3.0.16 234 9/19/2025
3.0.15 241 9/18/2025
3.0.14 316 9/18/2025
3.0.13 277 9/18/2025
3.0.12 249 9/18/2025
3.0.11 306 9/17/2025
3.0.10 258 9/17/2025
3.0.9 244 9/17/2025
3.0.8 247 9/17/2025
3.0.7 250 9/17/2025
3.0.6 249 9/17/2025
3.0.5 261 9/16/2025
3.0.4 251 9/15/2025
3.0.3 216 9/15/2025
3.0.2 218 9/15/2025
3.0.1 388 9/13/2025