width_arg: Shared width argument (internal)

View source: R/params.R

width_argR Documentation

Shared width argument (internal)

Description

Documentation-only function. Holds the canonical ⁠@param⁠ entry for a component's own width, inherited via ⁠@inheritParams⁠ by every component that wraps a .govuk-width-container. gov_page() documents its width separately, since there it sets an ambient default for child components rather than the component's own width.

Usage

width_arg(width)

Arguments

width

Width of the component. One of "standard" (the default, GOV.UK's usual 960px content width), "three-quarters" (three-quarters of the viewport, never narrower than standard), "full" (no max-width, so the container fills the viewport, with grid gutters also removed), or a CSS length (e.g. "1400px", "90vw") for a custom max-width.


shinyGovstyle documentation built on Oct. 16, 2026, 1:07 a.m.