0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…
Groups related form controls together with an optional caption. Essential for organizing complex forms and providing accessible groupings for screen readers.
When to Use
Grouping related form fields (e.g., billing address, shipping address)
Radio button or checkbox groups that belong together
Sections of a multi-part form
Any time you need to provide a group label for accessibility
Always include a legend as the first child to provide a caption for the group.
Basic Usage
A fieldset with a legend creates a visually and semantically grouped form section.
The disabledattribute on a fieldset disables all form controls within it. VB marks the group with muted text and a dashed border. The fieldset itself is not faded: its controls are disabled too and already dim themselves (buttons at half opacity, inputs on the raised surface), so fading the fieldset as well would compound to an unreadable quarter opacity. In forced-colors mode the group uses the system GrayText colour.
Disabled fieldset
12345
<fieldsetdisabled><legend>Disabled Section</legend><!-- All controls inside are disabled --><!-- Visual treatment: muted text, dashed border; controls dim once --></fieldset>
Status Variants
Use data-status to apply a subtle border tint indicating the state of the fieldset's contents. Uses the same vocabulary as inline semantics.
Pair the status with words. The tint is colour only, which colour-blind users and screen readers do not get. Say the state in the legend (as the demo does: "Payment Complete", "Validation Errors") or in a message inside the group. In forced-colors mode VB switches to a heavier border whose style differs per state: solid for success, dotted for warning, double for error.
On a fieldset of checkboxes, data-min-checked and data-max-checked set how many boxes must be ticked. The form coordinator checks the count, sets data-invalid on the fieldset when it is out of range, and writes the message into the fieldset's direct-child <output>. Override the default messages with data-message-min-checked and data-message-max-checked.
Checkbox group constraints
12345678
<fieldsetdata-min-checked="1"data-max-checked="2"data-message-min-checked="Pick at least one topic"><legend>Topics</legend><label><inputtype="checkbox"name="topic"value="css" /> CSS</label><label><inputtype="checkbox"name="topic"value="html" /> HTML</label><label><inputtype="checkbox"name="topic"value="js" /> JavaScript</label><outputaria-live="polite"></output></fieldset>
Do not set data-invalid by hand: the coordinator (and form-field styles) provide both the red border and the text message, so the error is never conveyed by colour alone. Keep the <output> in place for that message.
Accessibility Notes
Always include a legend: The legend provides the accessible name for the group
Legend must be first child: For proper rendering, legend must be the first element inside fieldset
Screen reader behavior: The legend is announced before each control in the group
Required for radio groups: Radio buttons should always be in a fieldset for accessibility
Avoid nesting too deep: Limit nesting to maintain comprehension
Status is not colour alone: Pair data-status with legend text or a message; forced-colors mode gets a border-style cue