Validation messages

Storybook Figma

Validation messages are used to convey information to the user about the current state of the input element. These messages can have an error, warning or success type.

Preview

Usage

Validation messages are typically paired with an input element. They are currently built in to some of our shared input components such as dt-input and dt-radio-group.

Variants

Success / Positive

Critical / Error

Warning

Vue API

Props

Name
Description
Default
id

The id of the validation message

Type: string
function() { return getUniqueString(); }
showMessages

Show Validation messages

Type: boolean
Values: truefalse
true
validationMessages

Array of validation messages. Each message has the following structure: { message: "Some informative message", type: "error|warning|success"}

Type: array
[]
Validation messages documentation last updated Thursday, June 11, 2026