Select With Error - With error

Pro

Role select with invalid styling and a validation error message.

Shadcn Select With Error component

Component Data

  • ID:select/select-with-error
  • Access:pro
  • Created:May 23, 2026
  • Type:example

Select With Error component design & features

This example sets aria-invalid on a role SelectTrigger and shows a destructive FieldDescription when the chosen role is not allowed.

Error selects belong in validated forms where an invalid choice must be corrected before submission.