The following utility classes can be used to control the maximum width of elements in Tailwind CSS:
max-w-xs: Sets the maximum width to20rem.max-w-sm: Sets the maximum width to24rem.max-w-md: Sets the maximum width to28rem.max-w-lg: Sets the maximum width to32rem.max-w-xl: Sets the maximum width to36rem.max-w-2xl: Sets the maximum width to42rem.max-w-3xl: Sets the maximum width to48rem.max-w-4xl: Sets the maximum width to56rem.max-w-5xl: Sets the maximum width to64rem.max-w-6xl: Sets the maximum width to72rem.max-w-7xl: Sets the maximum width to80rem.
Additionally, Tailwind CSS supports setting maximum width using percentages, such as:
max-w-full: Sets the maximum width to100%.max-w-screen-sm: Sets the maximum width to the width of a small screen.max-w-screen-md: Sets the maximum width to the width of a medium screen.max-w-screen-lg: Sets the maximum width to the width of a large screen.max-w-screen-xl: Sets the maximum width to the width of an extra-large screen.
These classes can be applied to any element to restrict its maximum width as needed.