We aim to dynamically adjust input field border colors based on error or success states. However, directly manipulating class names isn't sustainable due to potential changes. To address this, we propose a prop-controlled approach. Instead of fixed class names, a status prop conveys error, success, or default states for dynamic styling. This fosters flexibility and future-proofing, ensuring adaptability to evolving class names or structures.