--- title: Input wrapper Blade component --- ## Overview The input wrapper component should be used as a wrapper around the [input](input) or [select](select) components. It provides a border and other elements such as a prefix or suffix. ```blade ``` ## Triggering the error state of the input The component has special styling that you can use if it is invalid. To trigger this styling, you can use either Blade or Alpine.js. To trigger the error state using Blade, you can pass the `valid` attribute to the component, which contains either true or false based on if the input is valid or not: ```blade ``` Alternatively, you can use an Alpine.js expression to trigger the error state, based on if it evaluates to `true` or `false`: ```blade
``` ## Disabling the input To disable the input, you must also pass the `disabled` attribute to the wrapper component: ```blade ``` ## Adding affix text aside the input You may place text before and after the input using the `prefix` and `suffix` slots: ```blade https:// .com ``` ### Using icons as affixes You may place an [icon](https://blade-ui-kit.com/blade-icons?set=1#search) before and after the input using the `prefix-icon` and `suffix-icon` attributes: ```blade ```