Rails Form Labels built with ViewComponent and Tailwind CSS

Rails Designer’s FormLabelComponent is as simple as it’s elegant. Simply pass the Form Builder object and the field and upon a validation error the label will show the validation error and changes text color.