Skip to main content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Components

Statement of truth

Use with caution: Candidate USWDS v3
The Statement of truth allows users to certify that the information they have provided in form is correct and true to the best of their knowledge and belief.

Examples - v3

Default

View va-statement-of-truth in Storybook

With Input Error

View va-statement-of-truth in Storybook

With Custom heading

View va-statement-of-truth in Storybook

With Prefilling

View va-statement-of-truth in Storybook

Usage

When to use Component name

  • To collect a signature.: This component collects a digital signature from the user to certify their submission. This component is used in the Ask users for a signature pattern.

How this component works

The component works by asking the user to populate the text-input field with their name. That name must match the name entered earlier into the form on a previous step. If the name does not match, an error message is returned.

Behavior

  • When using this pattern, do not add the privacy policy checkbox at the end of the form. The user does not need to check another checkbox for privacy policy.

Placement

  • Place the component underneath the accordions on the review page. Do not hide this component inside an accordion.

Instances of this component in production

Code usage

Attributes and Properties

Property Attribute Type Default Description
checkboxError checkbox-error string '' The error to be applied to the va-check-box element
checkboxLabel checkbox-label string 'I certify the information above is correct and true to the best of my knowledge and belief.' The label for the va-checkbox-component
checked checked boolean The flag to prefill the checked state of the va-checkbox component
heading heading string 'Statement of Truth' An optional custom header for the component
inputError input-error string '' The error to be applied to the va-text-input element
inputLabel input-label string 'Your full name' The label for the va-text-input component
inputMessageAriaDescribedby input-message-aria-describedby string '' An optional message that will be read by screen readers when the input in the va-text-input component is focused.
inputValue input-value string '' The value to pre-fill the va-text-input element

Events

Name Description
vaCheckboxChange The event emitted when the checked state of the va-checkbox changes
vaInputBlur The event emitted when the user tabs out of the input
vaInputChange The event emitted when the value of the input changes

Content considerations

Error message templates

When a user doesn’t enter the name they entered previously in the form

Your signature must match your first and last name as previously entered.

When a user doesn’t check the checkbox for certification

Must certify by checking box

Component checklist

Maturity

Guidance
Examples, usage, code usage, content considerations, and accessibility considerations are all complete.
Research
VFS team conducted research on this component which is linked from this page.
Stability
Component has been in production for more than 3 months with no significant issues found.
Adoption
Multiple teams have adopted this component.

Accessibility

Accessible use of color
Color is not used as the only visual means of conveying information (WCAG 2.2 1.4.1).
Accessible contrast
Text has a contrast ratio of at least 4.5:1 for small text and at least 3:1 for large text (WCAG 2.2 1.4.3). Visual information required to identify components and states (except inactive components) has a contrast ratio of at least 3:1 (WCAG 2.2 1.4.11).
Keyboard interactions
Follows WCAG 2.2 standards for keyboard accessibility guidelines and includes a description of the keyboard interactions. All interactive elements can be selected and activated using the keyboard.
Content zoom tested
Component has been tested with the display set to 400% at 1280px viewport width to ensure that the component does not have overlapping text or elements and all interactive elements still operate.
Tested in screen readers
Tested with screen readers to ensure there are no issues with reading order, spelling, dynamic content, and interactive elements.

Code assets

Variations
Storybook includes all variations (style, size, orientation, optional iconography, selection, error state, etc.)
Responsive
Component depicted in all responsive breakpoints.
Interactive states
Includes all interactive states that are applicable (hover, active, focus, keyboard focus, disabled).
Tokens
All design attributes (color, typography, layout, etc.) are available as tokens.
Internationalization
Describes i18n attributes.

Visual assets

Variations
Sketch library includes all variations (style, size, orientation, optional iconography, selection, error state, etc.)
Responsive
Component designed to work in all responsive breakpoints.
Interactive states
Includes all interactive states that are applicable (hover, active, focus, keyboard focus, disabled).
Tokens
All design attributes (color, typography, layout, etc.) are available as tokens.
75% complete (12 of 16)

Legend:

  • Complete
  • Incomplete
  • Not applicable
Edit this page in GitHub (Permissions required)
Last updated: Mar 04, 2024