---
id: input
scope: theming
---

The `Input` component is a multipart component. The styling needs to be applied
to each part specifically.

> To learn more about styling multipart components, visit the
> [Component Style](/docs/styled-system/component-style#styling-multipart-components)
> page.

## Anatomy

- A: `addon`
- B: `field`
- C: `element`

<AspectRatio ratio={16 / 9}>
  <svg
    width='100%'
    height='100%'
    viewBox='0 0 480 270'
    fill='none'
    xmlns='http://www.w3.org/2000/svg'
  >
    <rect width='480' height='270' fill='white' />
    <g clip-path='url(#clip0_806_9237)'>
      <rect x='80' y='119' width='320' height='32' rx='6' fill='white' />
      <path
        d='M80 125C80 121.686 82.6863 119 86 119H137V151H86C82.6863 151 80 148.314 80 145V125Z'
        fill='#EDF2F7'
      />
      <path
        d='M95.142 140.001H92V129.82H95.2812C96.2689 129.82 97.1141 130.023 97.8168 130.431C98.5194 130.835 99.058 131.417 99.4325 132.176C99.8071 132.932 99.9943 133.837 99.9943 134.891C99.9943 135.951 99.8054 136.864 99.4276 137.63C99.0497 138.392 98.4995 138.979 97.777 139.39C97.0545 139.798 96.1761 140.001 95.142 140.001ZM93.233 138.908H95.0625C95.9044 138.908 96.602 138.745 97.1555 138.42C97.709 138.096 98.1217 137.633 98.3935 137.033C98.6652 136.433 98.8011 135.719 98.8011 134.891C98.8011 134.069 98.6669 133.361 98.3984 132.768C98.13 132.171 97.7289 131.714 97.1953 131.396C96.6617 131.074 95.9972 130.913 95.2017 130.913H93.233V138.908Z'
        fill='#2D3748'
      />
      <path
        d='M104.151 140.18C103.667 140.18 103.228 140.089 102.833 139.907C102.439 139.721 102.125 139.455 101.893 139.107C101.661 138.755 101.545 138.331 101.545 137.834C101.545 137.396 101.632 137.042 101.804 136.77C101.976 136.495 102.207 136.279 102.495 136.124C102.783 135.968 103.102 135.852 103.45 135.776C103.801 135.696 104.154 135.633 104.509 135.587C104.973 135.527 105.349 135.482 105.637 135.452C105.929 135.419 106.141 135.365 106.273 135.288C106.409 135.212 106.477 135.08 106.477 134.891V134.851C106.477 134.36 106.343 133.979 106.075 133.707C105.809 133.436 105.407 133.3 104.866 133.3C104.306 133.3 103.867 133.422 103.549 133.668C103.231 133.913 103.007 134.175 102.878 134.453L101.764 134.055C101.963 133.591 102.228 133.23 102.56 132.972C102.894 132.71 103.259 132.527 103.653 132.425C104.051 132.319 104.442 132.266 104.827 132.266C105.072 132.266 105.354 132.295 105.672 132.355C105.993 132.411 106.303 132.529 106.602 132.708C106.903 132.887 107.153 133.157 107.352 133.518C107.551 133.88 107.651 134.364 107.651 134.97V140.001H106.477V138.967H106.418C106.338 139.133 106.205 139.31 106.02 139.499C105.834 139.688 105.587 139.849 105.279 139.982C104.971 140.114 104.595 140.18 104.151 140.18ZM104.33 139.126C104.794 139.126 105.185 139.035 105.503 138.853C105.824 138.671 106.066 138.435 106.229 138.147C106.394 137.859 106.477 137.555 106.477 137.237V136.163C106.428 136.223 106.318 136.278 106.149 136.327C105.983 136.374 105.791 136.415 105.572 136.452C105.357 136.485 105.147 136.515 104.941 136.541C104.739 136.564 104.575 136.584 104.449 136.601C104.144 136.641 103.859 136.705 103.594 136.795C103.332 136.881 103.12 137.012 102.957 137.188C102.798 137.36 102.719 137.595 102.719 137.893C102.719 138.301 102.87 138.609 103.171 138.818C103.476 139.024 103.862 139.126 104.33 139.126Z'
        fill='#2D3748'
      />
      <path
        d='M113.113 132.365V133.359H109.156V132.365H113.113ZM110.309 130.536H111.482V137.814C111.482 138.145 111.53 138.394 111.627 138.56C111.726 138.722 111.852 138.831 112.004 138.888C112.16 138.941 112.324 138.967 112.497 138.967C112.626 138.967 112.732 138.961 112.815 138.947C112.898 138.931 112.964 138.918 113.014 138.908L113.252 139.962C113.173 139.991 113.062 140.021 112.919 140.051C112.777 140.084 112.596 140.101 112.377 140.101C112.046 140.101 111.721 140.03 111.403 139.887C111.088 139.745 110.826 139.527 110.617 139.236C110.412 138.944 110.309 138.576 110.309 138.132V130.536Z'
        fill='#2D3748'
      />
      <path
        d='M117.998 140.161C117.262 140.161 116.627 139.998 116.094 139.673C115.563 139.345 115.154 138.888 114.866 138.301C114.581 137.711 114.438 137.025 114.438 136.243C114.438 135.461 114.581 134.771 114.866 134.175C115.154 133.575 115.555 133.107 116.069 132.773C116.586 132.435 117.189 132.266 117.878 132.266C118.276 132.266 118.669 132.332 119.057 132.464C119.444 132.597 119.797 132.813 120.116 133.111C120.434 133.406 120.687 133.797 120.876 134.284C121.065 134.771 121.16 135.371 121.16 136.084V136.581H115.273V135.567H119.966C119.966 135.136 119.88 134.751 119.708 134.413C119.539 134.075 119.297 133.808 118.982 133.613C118.671 133.417 118.303 133.32 117.878 133.32C117.411 133.32 117.007 133.436 116.665 133.668C116.327 133.896 116.067 134.195 115.885 134.563C115.702 134.93 115.611 135.325 115.611 135.746V136.422C115.611 136.999 115.711 137.487 115.91 137.888C116.112 138.286 116.392 138.589 116.75 138.798C117.108 139.004 117.524 139.107 117.998 139.107C118.306 139.107 118.584 139.063 118.833 138.977C119.085 138.888 119.302 138.755 119.484 138.58C119.666 138.401 119.807 138.179 119.907 137.913L121.04 138.232C120.921 138.616 120.72 138.954 120.439 139.246C120.157 139.534 119.809 139.759 119.395 139.922C118.98 140.081 118.515 140.161 117.998 140.161Z'
        fill='#2D3748'
      />
      <path
        d='M123.8 140.081C123.554 140.081 123.344 139.993 123.168 139.817C122.992 139.642 122.905 139.431 122.905 139.186C122.905 138.941 122.992 138.73 123.168 138.555C123.344 138.379 123.554 138.291 123.8 138.291C124.045 138.291 124.255 138.379 124.431 138.555C124.607 138.73 124.694 138.941 124.694 139.186C124.694 139.348 124.653 139.498 124.57 139.634C124.491 139.769 124.383 139.879 124.247 139.962C124.114 140.041 123.965 140.081 123.8 140.081ZM123.8 134.413C123.554 134.413 123.344 134.326 123.168 134.15C122.992 133.974 122.905 133.764 122.905 133.518C122.905 133.273 122.992 133.063 123.168 132.887C123.344 132.711 123.554 132.624 123.8 132.624C124.045 132.624 124.255 132.711 124.431 132.887C124.607 133.063 124.694 133.273 124.694 133.518C124.694 133.681 124.653 133.83 124.57 133.966C124.491 134.102 124.383 134.211 124.247 134.294C124.114 134.374 123.965 134.413 123.8 134.413Z'
        fill='#2D3748'
      />
      <path d='M136.694 119H137.694V151H136.694V119Z' fill='#E2E8F0' />
      <path
        d='M153.155 139.057C152.498 139.057 151.913 138.944 151.4 138.719C150.889 138.493 150.483 138.18 150.182 137.779C149.883 137.375 149.721 136.906 149.694 136.372H150.947C150.974 136.7 151.086 136.984 151.285 137.222C151.484 137.458 151.744 137.64 152.066 137.769C152.387 137.898 152.744 137.963 153.135 137.963C153.572 137.963 153.96 137.887 154.298 137.734C154.636 137.582 154.901 137.37 155.094 137.098C155.286 136.826 155.382 136.511 155.382 136.153C155.382 135.779 155.289 135.449 155.104 135.164C154.918 134.876 154.646 134.65 154.288 134.488C153.93 134.326 153.493 134.244 152.976 134.244H152.16V133.151H152.976C153.38 133.151 153.735 133.078 154.04 132.932C154.348 132.786 154.588 132.58 154.76 132.315C154.936 132.05 155.024 131.739 155.024 131.381C155.024 131.036 154.948 130.736 154.795 130.481C154.643 130.226 154.427 130.027 154.149 129.884C153.874 129.742 153.549 129.67 153.175 129.67C152.823 129.67 152.492 129.735 152.18 129.864C151.872 129.99 151.62 130.174 151.425 130.416C151.229 130.655 151.123 130.943 151.106 131.281H149.913C149.933 130.748 150.094 130.28 150.395 129.879C150.697 129.475 151.091 129.16 151.579 128.935C152.069 128.709 152.608 128.597 153.194 128.597C153.824 128.597 154.364 128.724 154.815 128.979C155.266 129.231 155.612 129.564 155.854 129.979C156.096 130.393 156.217 130.84 156.217 131.321C156.217 131.894 156.066 132.383 155.765 132.788C155.466 133.192 155.06 133.472 154.547 133.628V133.707C155.19 133.813 155.692 134.087 156.053 134.528C156.414 134.965 156.595 135.507 156.595 136.153C156.595 136.707 156.444 137.204 156.143 137.645C155.844 138.082 155.437 138.427 154.92 138.679C154.403 138.931 153.814 139.057 153.155 139.057Z'
        fill='black'
        fillOpacity='0.36'
      />
      <path
        d='M161.949 139.057C161.2 139.057 160.562 138.853 160.035 138.445C159.508 138.034 159.106 137.439 158.827 136.661C158.549 135.878 158.41 134.934 158.41 133.827C158.41 132.726 158.549 131.787 158.827 131.008C159.109 130.226 159.513 129.629 160.04 129.218C160.571 128.804 161.207 128.597 161.949 128.597C162.692 128.597 163.327 128.804 163.854 129.218C164.384 129.629 164.788 130.226 165.067 131.008C165.348 131.787 165.489 132.726 165.489 133.827C165.489 134.934 165.35 135.878 165.072 136.661C164.793 137.439 164.39 138.034 163.863 138.445C163.336 138.853 162.698 139.057 161.949 139.057ZM161.949 137.963C162.692 137.963 163.269 137.605 163.68 136.889C164.09 136.173 164.296 135.152 164.296 133.827C164.296 132.945 164.202 132.194 164.013 131.575C163.827 130.955 163.559 130.482 163.207 130.158C162.859 129.833 162.44 129.67 161.949 129.67C161.214 129.67 160.639 130.033 160.224 130.759C159.81 131.482 159.603 132.504 159.603 133.827C159.603 134.708 159.696 135.457 159.881 136.074C160.067 136.69 160.334 137.159 160.682 137.481C161.033 137.802 161.456 137.963 161.949 137.963Z'
        fill='black'
        fillOpacity='0.36'
      />
      <path
        d='M180.086 133.827C180.086 134.901 179.892 135.829 179.504 136.611C179.116 137.393 178.584 137.996 177.908 138.42C177.232 138.845 176.46 139.057 175.591 139.057C174.723 139.057 173.951 138.845 173.275 138.42C172.599 137.996 172.067 137.393 171.679 136.611C171.291 135.829 171.097 134.901 171.097 133.827C171.097 132.753 171.291 131.825 171.679 131.043C172.067 130.26 172.599 129.657 173.275 129.233C173.951 128.809 174.723 128.597 175.591 128.597C176.46 128.597 177.232 128.809 177.908 129.233C178.584 129.657 179.116 130.26 179.504 131.043C179.892 131.825 180.086 132.753 180.086 133.827ZM178.893 133.827C178.893 132.945 178.745 132.201 178.45 131.594C178.158 130.988 177.762 130.529 177.262 130.217C176.765 129.906 176.208 129.75 175.591 129.75C174.975 129.75 174.416 129.906 173.916 130.217C173.419 130.529 173.023 130.988 172.728 131.594C172.436 132.201 172.29 132.945 172.29 133.827C172.29 134.708 172.436 135.452 172.728 136.059C173.023 136.665 173.419 137.125 173.916 137.436C174.416 137.748 174.975 137.903 175.591 137.903C176.208 137.903 176.765 137.748 177.262 137.436C177.762 137.125 178.158 136.665 178.45 136.059C178.745 135.452 178.893 134.708 178.893 133.827Z'
        fill='black'
        fillOpacity='0.36'
      />
      <path
        d='M185.102 139.077C184.386 139.077 183.77 138.908 183.253 138.57C182.736 138.232 182.338 137.766 182.059 137.173C181.781 136.579 181.642 135.902 181.642 135.139C181.642 134.364 181.784 133.679 182.069 133.086C182.358 132.489 182.759 132.024 183.273 131.689C183.79 131.351 184.393 131.182 185.082 131.182C185.619 131.182 186.103 131.281 186.534 131.48C186.965 131.679 187.318 131.957 187.593 132.315C187.868 132.673 188.039 133.091 188.105 133.568H186.932C186.842 133.22 186.643 132.912 186.335 132.643C186.03 132.372 185.619 132.236 185.102 132.236C184.645 132.236 184.244 132.355 183.899 132.594C183.558 132.829 183.291 133.162 183.099 133.593C182.91 134.021 182.815 134.523 182.815 135.099C182.815 135.689 182.908 136.203 183.094 136.641C183.282 137.078 183.548 137.418 183.889 137.66C184.234 137.902 184.638 138.023 185.102 138.023C185.407 138.023 185.684 137.97 185.932 137.864C186.181 137.758 186.391 137.605 186.564 137.406C186.736 137.207 186.859 136.969 186.932 136.69H188.105C188.039 137.141 187.875 137.547 187.613 137.908C187.354 138.266 187.011 138.551 186.584 138.763C186.159 138.972 185.666 139.077 185.102 139.077Z'
        fill='black'
        fillOpacity='0.36'
      />
      <path
        d='M193.141 131.281V132.276H189.184V131.281H193.141ZM190.337 129.452H191.51V136.73C191.51 137.062 191.559 137.31 191.655 137.476C191.754 137.638 191.88 137.748 192.032 137.804C192.188 137.857 192.352 137.884 192.525 137.884C192.654 137.884 192.76 137.877 192.843 137.864C192.926 137.847 192.992 137.834 193.042 137.824L193.28 138.878C193.201 138.908 193.09 138.937 192.947 138.967C192.805 139 192.624 139.017 192.405 139.017C192.074 139.017 191.749 138.946 191.431 138.803C191.116 138.661 190.854 138.444 190.645 138.152C190.44 137.86 190.337 137.492 190.337 137.048V129.452Z'
        fill='black'
        fillOpacity='0.36'
      />
      <path
        d='M196.656 137.526L196.577 138.062C196.52 138.44 196.434 138.845 196.318 139.276C196.205 139.706 196.088 140.112 195.965 140.494C195.842 140.875 195.741 141.178 195.662 141.403H194.767C194.81 141.191 194.866 140.911 194.936 140.563C195.006 140.215 195.075 139.826 195.145 139.395C195.218 138.967 195.277 138.53 195.324 138.082L195.383 137.526H196.656Z'
        fill='black'
        fillOpacity='0.36'
      />
      <path
        d='M202.748 138.918V138.023L206.108 134.344C206.503 133.913 206.828 133.538 207.083 133.22C207.338 132.899 207.527 132.597 207.65 132.315C207.775 132.03 207.838 131.732 207.838 131.42C207.838 131.062 207.752 130.753 207.58 130.491C207.411 130.229 207.179 130.027 206.884 129.884C206.589 129.742 206.257 129.67 205.89 129.67C205.498 129.67 205.157 129.752 204.865 129.914C204.577 130.073 204.353 130.297 204.194 130.585C204.038 130.874 203.961 131.212 203.961 131.599H202.787C202.787 131.003 202.925 130.479 203.2 130.028C203.475 129.578 203.85 129.226 204.324 128.974C204.801 128.723 205.336 128.597 205.929 128.597C206.526 128.597 207.055 128.723 207.515 128.974C207.976 129.226 208.337 129.566 208.599 129.994C208.861 130.421 208.992 130.897 208.992 131.42C208.992 131.795 208.924 132.161 208.788 132.519C208.655 132.874 208.423 133.27 208.092 133.707C207.764 134.142 207.308 134.672 206.725 135.298L204.438 137.744V137.824H209.171V138.918H202.748Z'
        fill='black'
        fillOpacity='0.36'
      />
      <path
        d='M214.545 139.057C213.796 139.057 213.158 138.853 212.631 138.445C212.104 138.034 211.701 137.439 211.423 136.661C211.145 135.878 211.005 134.934 211.005 133.827C211.005 132.726 211.145 131.787 211.423 131.008C211.705 130.226 212.109 129.629 212.636 129.218C213.166 128.804 213.803 128.597 214.545 128.597C215.288 128.597 215.922 128.804 216.449 129.218C216.98 129.629 217.384 130.226 217.662 131.008C217.944 131.787 218.085 132.726 218.085 133.827C218.085 134.934 217.946 135.878 217.667 136.661C217.389 137.439 216.986 138.034 216.459 138.445C215.932 138.853 215.294 139.057 214.545 139.057ZM214.545 137.963C215.288 137.963 215.864 137.605 216.275 136.889C216.686 136.173 216.892 135.152 216.892 133.827C216.892 132.945 216.797 132.194 216.608 131.575C216.423 130.955 216.154 130.482 215.803 130.158C215.455 129.833 215.036 129.67 214.545 129.67C213.809 129.67 213.234 130.033 212.82 130.759C212.406 131.482 212.199 132.504 212.199 133.827C212.199 134.708 212.291 135.457 212.477 136.074C212.663 136.69 212.929 137.159 213.277 137.481C213.629 137.802 214.051 137.963 214.545 137.963Z'
        fill='black'
        fillOpacity='0.36'
      />
      <path
        d='M219.974 138.918V138.023L223.335 134.344C223.729 133.913 224.054 133.538 224.309 133.22C224.565 132.899 224.753 132.597 224.876 132.315C225.002 132.03 225.065 131.732 225.065 131.42C225.065 131.062 224.979 130.753 224.806 130.491C224.637 130.229 224.405 130.027 224.11 129.884C223.815 129.742 223.484 129.67 223.116 129.67C222.725 129.67 222.384 129.752 222.092 129.914C221.804 130.073 221.58 130.297 221.421 130.585C221.265 130.874 221.187 131.212 221.187 131.599H220.014C220.014 131.003 220.151 130.479 220.426 130.028C220.702 129.578 221.076 129.226 221.55 128.974C222.027 128.723 222.563 128.597 223.156 128.597C223.752 128.597 224.281 128.723 224.742 128.974C225.203 129.226 225.564 129.566 225.826 129.994C226.087 130.421 226.218 130.897 226.218 131.42C226.218 131.795 226.15 132.161 226.015 132.519C225.882 132.874 225.65 133.27 225.319 133.707C224.99 134.142 224.535 134.672 223.951 135.298L221.664 137.744V137.824H226.397V138.918H219.974Z'
        fill='black'
        fillOpacity='0.36'
      />
      <path
        d='M228.451 138.918V138.023L231.811 134.344C232.206 133.913 232.531 133.538 232.786 133.22C233.041 132.899 233.23 132.597 233.353 132.315C233.479 132.03 233.542 131.732 233.542 131.42C233.542 131.062 233.455 130.753 233.283 130.491C233.114 130.229 232.882 130.027 232.587 129.884C232.292 129.742 231.961 129.67 231.593 129.67C231.202 129.67 230.86 129.752 230.569 129.914C230.28 130.073 230.056 130.297 229.897 130.585C229.742 130.874 229.664 131.212 229.664 131.599H228.49C228.49 131.003 228.628 130.479 228.903 130.028C229.178 129.578 229.553 129.226 230.027 128.974C230.504 128.723 231.039 128.597 231.632 128.597C232.229 128.597 232.758 128.723 233.218 128.974C233.679 129.226 234.04 129.566 234.302 129.994C234.564 130.421 234.695 130.897 234.695 131.42C234.695 131.795 234.627 132.161 234.491 132.519C234.359 132.874 234.127 133.27 233.795 133.707C233.467 134.142 233.011 134.672 232.428 135.298L230.141 137.744V137.824H234.874V138.918H228.451Z'
        fill='black'
        fillOpacity='0.36'
      />
      <path
        d='M382.041 127.5H385.374C385.595 127.5 385.807 127.588 385.963 127.744C386.119 127.9 386.207 128.112 386.207 128.333V141.667C386.207 141.888 386.119 142.1 385.963 142.256C385.807 142.412 385.595 142.5 385.374 142.5H370.374C370.153 142.5 369.941 142.412 369.785 142.256C369.628 142.1 369.541 141.888 369.541 141.667V128.333C369.541 128.112 369.628 127.9 369.785 127.744C369.941 127.588 370.153 127.5 370.374 127.5H373.707V125.833H375.374V127.5H380.374V125.833H382.041V127.5ZM380.374 129.167H375.374V130.833H373.707V129.167H371.207V132.5H384.541V129.167H382.041V130.833H380.374V129.167ZM384.541 134.167H371.207V140.833H384.541V134.167Z'
        fill='#A0AEC0'
      />
    </g>
    <rect
      x='80.5'
      y='119.5'
      width='319'
      height='31'
      rx='5.5'
      stroke='#E2E8F0'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M377.5 169L377.5 145L378.5 145L378.5 169L377.5 169Z'
      fill='#319795'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M108.5 124L108.5 100L109.5 100L109.5 124L108.5 124Z'
      fill='#319795'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M245.5 124L245.5 100L246.5 100L246.5 124L245.5 124Z'
      fill='#319795'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M389 123H367V145H389V123ZM366 122V146H390V122H366Z'
      fill='#319795'
    />
    <path
      d='M123 86C123 93.732 116.732 100 109 100C101.268 100 95 93.732 95 86C95 78.268 101.268 72 109 72C116.732 72 123 78.268 123 86Z'
      fill='#B2F5EA'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M109 99C116.18 99 122 93.1797 122 86C122 78.8203 116.18 73 109 73C101.82 73 96 78.8203 96 86C96 93.1797 101.82 99 109 99ZM109 100C116.732 100 123 93.732 123 86C123 78.268 116.732 72 109 72C101.268 72 95 78.268 95 86C95 93.732 101.268 100 109 100Z'
      fill='#319795'
    />
    <path
      d='M392 183C392 190.732 385.732 197 378 197C370.268 197 364 190.732 364 183C364 175.268 370.268 169 378 169C385.732 169 392 175.268 392 183Z'
      fill='#B2F5EA'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M378 196C385.18 196 391 190.18 391 183C391 175.82 385.18 170 378 170C370.82 170 365 175.82 365 183C365 190.18 370.82 196 378 196ZM378 197C385.732 197 392 190.732 392 183C392 175.268 385.732 169 378 169C370.268 169 364 175.268 364 183C364 190.732 370.268 197 378 197Z'
      fill='#319795'
    />
    <path
      d='M105.642 92H103.392L107.489 80.3636H110.091L114.193 92H111.943L108.835 82.75H108.744L105.642 92ZM105.716 87.4375H111.852V89.1307H105.716V87.4375Z'
      fill='#319795'
    />
    <circle cx='109' cy='124' r='2' fill='#319795' />
    <path
      d='M260 86C260 93.732 253.732 100 246 100C238.268 100 232 93.732 232 86C232 78.268 238.268 72 246 72C253.732 72 260 78.268 260 86Z'
      fill='#B2F5EA'
    />
    <path
      fillRule='evenodd'
      clipRule='evenodd'
      d='M246 99C253.18 99 259 93.1797 259 86C259 78.8203 253.18 73 246 73C238.82 73 233 78.8203 233 86C233 93.1797 238.82 99 246 99ZM246 100C253.732 100 260 93.732 260 86C260 78.268 253.732 72 246 72C238.268 72 232 78.268 232 86C232 93.732 238.268 100 246 100Z'
      fill='#319795'
    />
    <path
      d='M383.108 181.29H380.983C380.922 180.941 380.811 180.633 380.648 180.364C380.485 180.091 380.282 179.86 380.04 179.67C379.797 179.481 379.521 179.339 379.21 179.244C378.903 179.146 378.572 179.097 378.216 179.097C377.583 179.097 377.023 179.256 376.534 179.574C376.045 179.888 375.663 180.35 375.386 180.96C375.11 181.566 374.972 182.307 374.972 183.182C374.972 184.072 375.11 184.822 375.386 185.432C375.667 186.038 376.049 186.496 376.534 186.807C377.023 187.114 377.581 187.267 378.21 187.267C378.559 187.267 378.884 187.222 379.187 187.131C379.494 187.036 379.769 186.898 380.011 186.716C380.258 186.534 380.464 186.311 380.631 186.045C380.801 185.78 380.919 185.477 380.983 185.136L383.108 185.148C383.028 185.701 382.856 186.22 382.591 186.705C382.33 187.189 381.987 187.617 381.562 187.989C381.138 188.356 380.642 188.644 380.074 188.852C379.506 189.057 378.875 189.159 378.182 189.159C377.159 189.159 376.246 188.922 375.443 188.449C374.64 187.975 374.008 187.292 373.545 186.398C373.083 185.504 372.852 184.432 372.852 183.182C372.852 181.928 373.085 180.856 373.551 179.966C374.017 179.072 374.652 178.388 375.455 177.915C376.258 177.441 377.167 177.205 378.182 177.205C378.83 177.205 379.432 177.295 379.989 177.477C380.545 177.659 381.042 177.926 381.477 178.278C381.913 178.627 382.271 179.055 382.551 179.562C382.835 180.066 383.021 180.642 383.108 181.29Z'
      fill='#319795'
    />
    <path
      d='M242.148 92V80.3636H246.602C247.443 80.3636 248.142 80.4962 248.699 80.7614C249.259 81.0227 249.678 81.3807 249.955 81.8352C250.235 82.2898 250.375 82.8049 250.375 83.3807C250.375 83.8542 250.284 84.2595 250.102 84.5966C249.92 84.9299 249.676 85.2008 249.369 85.4091C249.062 85.6174 248.72 85.767 248.341 85.858V85.9716C248.754 85.9943 249.15 86.1212 249.528 86.3523C249.911 86.5795 250.223 86.9015 250.466 87.3182C250.708 87.7348 250.83 88.2386 250.83 88.8295C250.83 89.4318 250.684 89.9735 250.392 90.4545C250.1 90.9318 249.661 91.3087 249.074 91.5852C248.487 91.8617 247.748 92 246.858 92H242.148ZM244.256 90.2386H246.523C247.288 90.2386 247.839 90.0928 248.176 89.8011C248.517 89.5057 248.687 89.1269 248.687 88.6648C248.687 88.3201 248.602 88.0095 248.432 87.733C248.261 87.4526 248.019 87.233 247.705 87.0739C247.39 86.911 247.015 86.8295 246.58 86.8295H244.256V90.2386ZM244.256 85.3125H246.341C246.705 85.3125 247.032 85.2462 247.324 85.1136C247.616 84.9773 247.845 84.786 248.011 84.5398C248.182 84.2898 248.267 83.9943 248.267 83.6534C248.267 83.2026 248.108 82.8314 247.79 82.5398C247.475 82.2481 247.008 82.1023 246.386 82.1023H244.256V85.3125Z'
      fill='#319795'
    />
    <circle cx='246' cy='124' r='2' fill='#319795' />
    <defs>
      <clipPath id='clip0_806_9237'>
        <rect x='80' y='119' width='320' height='32' rx='6' fill='white' />
      </clipPath>
    </defs>
  </svg>
</AspectRatio>

## Theming properties

The properties that affect the theming of the `Input` component are:

- `variant`: The visual variant of the input. Defaults to `outline`.
- `size`: The size of the input. Defaults to `md`.

## Theming utilities

- `createMultiStyleConfigHelpers`: a function that returns a set of utilities
  for creating style configs for a multipart component (`definePartsStyle` and
  `defineMultiStyleConfig`).
- `definePartsStyle`: a function used to create multipart style objects.
- `defineMultiStyleConfig`: a function used to define the style configuration
  for a multipart component.

```jsx live=false
import { inputAnatomy } from '@chakra-ui/anatomy'
import { createMultiStyleConfigHelpers } from '@chakra-ui/react'

const { definePartsStyle, defineMultiStyleConfig } =
  createMultiStyleConfigHelpers(inputAnatomy.keys)
```

## Customizing the default theme

```jsx live=false
import { inputAnatomy } from '@chakra-ui/anatomy'
import { createMultiStyleConfigHelpers } from '@chakra-ui/react'

const { definePartsStyle, defineMultiStyleConfig } =
  createMultiStyleConfigHelpers(inputAnatomy.keys)

const baseStyle = definePartsStyle({
  // define the part you're going to style
  field: {
    fontFamily: 'mono', // change the font family
    color: 'teal.500', // change the input text color
  },
})

export const inputTheme = defineMultiStyleConfig({ baseStyle })
```

After customizing the input theme, we can import it in our theme file and add it
in the `components` property:

```jsx live=false
import { extendTheme } from '@chakra-ui/react'
import { inputTheme } from './components/input.ts'

export const theme = extendTheme({
  components: { Input: inputTheme },
})
```

> This is a crucial step to make sure that any changes that we make to the input
> theme are applied.

## Adding a custom size

Let's assume we want to include an extra large input size. Here's how we can do
that:

```jsx live=false
import { inputAnatomy } from '@chakra-ui/anatomy'
import { createMultiStyleConfigHelpers, defineStyle } from '@chakra-ui/react'

const { definePartsStyle, defineMultiStyleConfig } =
  createMultiStyleConfigHelpers(inputAnatomy.keys)

const xl = defineStyle({
  fontSize: 'lg',
  px: '4',
  h: '12',
})

const sizes = {
  xl: definePartsStyle({ field: xl, addon: xl }),
}

export const inputTheme = defineMultiStyleConfig({ sizes })

// Now we can use the new `xl` size
<Input size="xl" ... />
```

Every time you're adding anything new to the theme, you'd need to run the CLI
command to get proper autocomplete in your IDE. You can learn more about the CLI
tool [here](/docs/styled-system/cli).

## Adding a custom variant

Let's assume we want to include a custom pill variant. Here's how we can do
that:

```jsx live=false
import { inputAnatomy } from '@chakra-ui/anatomy'
import { createMultiStyleConfigHelpers, defineStyle } from '@chakra-ui/react'

const { definePartsStyle, defineMultiStyleConfig } =
  createMultiStyleConfigHelpers(inputAnatomy.keys)

const pill = definePartsStyle({
  field: {
    border: '1px solid',
    borderColor: 'gray.200',
    background: 'gray.50',
    borderRadius: 'full',

    // Let's also provide dark mode alternatives
    _dark: {
      borderColor: 'gray.600',
      background: 'gray.800',
    },
  },
  addon: {
    border: '1px solid',
    borderColor: 'gray.200',
    background: 'gray.200',
    borderRadius: 'full',
    color: 'gray.500',

    _dark: {
      borderColor: 'gray.600',
      background: 'gray.600',
      color: 'gray.400',
    },
  },
})

export const inputTheme = defineMultiStyleConfig({
  variants: { pill },
})

// Now we can use the new `pill` variant
<Input variant="pill" ... />
```

## Changing the default properties

Let's assume we want to change the default size and variant of every input in
our app. Here's how we can do that:

```jsx live=false
import { inputAnatomy } from '@chakra-ui/anatomy'
import { createMultiStyleConfigHelpers, defineStyle } from '@chakra-ui/react'

const { defineMultiStyleConfig } = createMultiStyleConfigHelpers(
  inputAnatomy.keys,
)

export const inputTheme = defineMultiStyleConfig({
  defaultProps: {
    size: 'xl',
    variant: 'pill',
  },
})

// This saves you time, instead of manually setting the size and variant every time you use an input:
<Input size="xl" variant="pill" ... />
```

## Showcase

import {
  App,
  Index,
  InputTheme,
} from 'configs/sandpack-contents/component-theming/input'

<SandpackEmbed
  files={{
    '/theme/components/Input.ts': InputTheme,
    '/App.tsx': App,
    '/index.tsx': {
      code: Index,
      hidden: true,
    },
  }}
  dependencies={{
    'react-icons': '^4.4.0',
  }}
/>
