Soenneker.Quark.Fields
3.0.8
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Quark.Fields --version 3.0.8
NuGet\Install-Package Soenneker.Quark.Fields -Version 3.0.8
<PackageReference Include="Soenneker.Quark.Fields" Version="3.0.8" />
<PackageVersion Include="Soenneker.Quark.Fields" Version="3.0.8" />
<PackageReference Include="Soenneker.Quark.Fields" />
paket add Soenneker.Quark.Fields --version 3.0.8
#r "nuget: Soenneker.Quark.Fields, 3.0.8"
#:package Soenneker.Quark.Fields@3.0.8
#addin nuget:?package=Soenneker.Quark.Fields&version=3.0.8
#tool nuget:?package=Soenneker.Quark.Fields&version=3.0.8
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.9)
- Soenneker.Quark.Enums.Colors (>= 3.0.1)
- Soenneker.Quark.Enums.Size (>= 3.0.3)
- Soenneker.Quark.Labels (>= 3.0.8)
- Soenneker.Quark.Spans (>= 3.0.10)
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 |
---|---|---|
3.0.44 | 0 | 9/28/2025 |
3.0.43 | 21 | 9/28/2025 |
3.0.42 | 25 | 9/28/2025 |
3.0.41 | 26 | 9/28/2025 |
3.0.40 | 31 | 9/28/2025 |
3.0.39 | 28 | 9/28/2025 |
3.0.37 | 116 | 9/27/2025 |
3.0.36 | 41 | 9/27/2025 |
3.0.35 | 48 | 9/27/2025 |
3.0.34 | 35 | 9/27/2025 |
3.0.33 | 71 | 9/27/2025 |
3.0.32 | 53 | 9/26/2025 |
3.0.31 | 67 | 9/26/2025 |
3.0.27 | 158 | 9/26/2025 |
3.0.26 | 141 | 9/25/2025 |
3.0.25 | 109 | 9/24/2025 |
3.0.24 | 114 | 9/24/2025 |
3.0.23 | 461 | 9/21/2025 |
3.0.22 | 144 | 9/21/2025 |
3.0.21 | 162 | 9/20/2025 |
3.0.20 | 167 | 9/20/2025 |
3.0.19 | 236 | 9/19/2025 |
3.0.18 | 219 | 9/19/2025 |
3.0.17 | 633 | 9/19/2025 |
3.0.16 | 268 | 9/19/2025 |
3.0.15 | 274 | 9/18/2025 |
3.0.14 | 395 | 9/18/2025 |
3.0.13 | 332 | 9/18/2025 |
3.0.12 | 278 | 9/18/2025 |
3.0.11 | 363 | 9/17/2025 |
3.0.10 | 294 | 9/17/2025 |
3.0.9 | 276 | 9/17/2025 |
3.0.8 | 279 | 9/17/2025 |
3.0.7 | 272 | 9/17/2025 |
3.0.6 | 281 | 9/17/2025 |
3.0.5 | 284 | 9/16/2025 |
3.0.4 | 275 | 9/15/2025 |
3.0.3 | 240 | 9/15/2025 |
3.0.2 | 241 | 9/15/2025 |
3.0.1 | 453 | 9/13/2025 |