import { Meta } from "@storybook/addon-docs"; # `bitInput` `bitInput` is an Angular directive to be used on ``, ``, and `` tags in order to provide standardized TailwindCss styling, error handling, and more. It is meant to be used within a `` custom component. ## Basic Usage Example ```html ... ... ``` ## Disabled `bitInput` and Error Handling If you would like to be able to still show errors when an input is disabled for specific validation scenarios, then set `[showErrorsWhenDisabled]="true"` ```html ... ... ``` **NOTE:** Disabling a FormControl removes validation errors so you must manually set the errors after disabling: ```ts get exampleFormCtrl(): FormControl { return this.form.controls.exampleFormControl as FormControl; } ... this.exampleFormCtrl.setErrors({ error: { message: this.i18nService.t("...", this.exampleFormCtrl.value), }, }); ```