Min-Width

    Set the minimum width of an element using the or min-w-full utilities.


    To control the min-width of an element at a specific breakpoint, add a {screen}: prefix to any existing min-width utility.

    For more information about Tailwind’s responsive design features, check out the Responsive Design documentation.

    Min-Width - 图2

    all

    sm

    md

    Min-Width - 图5

    lg

    Target


    Customize Tailwind’s default min-width scale in the section of your tailwind.config.js file.

    Learn more about customizing the default theme in the .

    By default, only responsive variants are generated for min-width utilities.

    You can control which variants are generated for the min-width utilities by modifying the minWidth property in the section of your tailwind.config.js file.

    For example, this config will also generate hover and focus variants:


    ← Width