Soenneker.Quark.Fields
3.0.10
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Quark.Fields --version 3.0.10
NuGet\Install-Package Soenneker.Quark.Fields -Version 3.0.10
<PackageReference Include="Soenneker.Quark.Fields" Version="3.0.10" />
<PackageVersion Include="Soenneker.Quark.Fields" Version="3.0.10" />
<PackageReference Include="Soenneker.Quark.Fields" />
paket add Soenneker.Quark.Fields --version 3.0.10
#r "nuget: Soenneker.Quark.Fields, 3.0.10"
#:package Soenneker.Quark.Fields@3.0.10
#addin nuget:?package=Soenneker.Quark.Fields&version=3.0.10
#tool nuget:?package=Soenneker.Quark.Fields&version=3.0.10
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
- Default:
- 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
- Default:
- FieldBody: No classes (Bootstrap 5 doesn't require them)
- FieldHelp:
form-text text-muted
- Default:
margin-top: 0.25rem; font-size: 0.875em
- Default:
All default styling can be overridden by passing custom Style
or Class
parameters to the components.
Product | Versions 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. |
-
net9.0
- Soenneker.Quark.Divs (>= 3.0.10)
- Soenneker.Quark.Labels (>= 3.0.8)
- Soenneker.Quark.Spans (>= 3.0.11)
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 | 164 | 9/21/2025 |
3.0.22 | 64 | 9/21/2025 |
3.0.21 | 80 | 9/20/2025 |
3.0.20 | 93 | 9/20/2025 |
3.0.19 | 205 | 9/19/2025 |
3.0.18 | 200 | 9/19/2025 |
3.0.17 | 486 | 9/19/2025 |
3.0.16 | 243 | 9/19/2025 |
3.0.15 | 250 | 9/18/2025 |
3.0.14 | 324 | 9/18/2025 |
3.0.13 | 286 | 9/18/2025 |
3.0.12 | 257 | 9/18/2025 |
3.0.11 | 315 | 9/17/2025 |
3.0.10 | 267 | 9/17/2025 |
3.0.9 | 253 | 9/17/2025 |
3.0.8 | 256 | 9/17/2025 |
3.0.7 | 258 | 9/17/2025 |
3.0.6 | 258 | 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 |