Text Overflow

    Utilities for controlling text overflow in an element.

    Use to truncate overflowing text with an ellipsis () if needed.

    Text Overflow - 图2

    Use text-clip to truncate the text at the limit of the content area.


    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:text-clip to apply the text-clip utility at only medium screen sizes and above.

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