Floats

    Utilities for controlling the wrapping of content around an element.

    Use to float an element to the right of its container.

    Floats - 图2

    Use to reset any floats that are applied to an element. This is the default value for the float property.


    For a complete list of all available state modifiers, check out the documentation.

    You can also use variant modifiers to target media queries like responsive breakpoints, dark mode, prefers-reduced-motion, and more. For example, use md:float-right to apply the utility at only medium screen sizes and above.

    To learn more, check out the documentation on , Dark Mode and .