๐Ÿ’ป My Work/๐ŸŽจ Material Design

[Material Design] Material-UI(MUI) <๊ธ€์ž ์ˆ˜ ๋„˜์–ด๊ฐ€๋ฉด ๋ง์ค„์ž„ํ‘œ / ์›ํ•˜๋Š” ๋งŒํผ์˜ ์ค„๋งŒ ๋ณด์ด๊ฒŒ ํ•˜๊ธฐ>

Jaeseo Kim 2023. 1. 14. 20:53
 

Material ui text ellipsis after two line

How can I ellipsis a text after two line in material ui? Here https://material-ui.com/system/display/#text-overflow show for single line

stackoverflow.com

      <Typography
        variant="body2" // ์›ํ•˜๋Š” Typo
        sx={{
          WebkitLineClamp: "2", // ์›ํ•˜๋Š” ๋งŒํผ์˜ ์ค„
          overflow: "hidden",
          textOverflow: "ellipsis",
          display: "-webkit-box",
          WebkitBoxOrient: "vertical",
        }}
      >
        ์ปจํ…์ธ  ๋‚ด์šฉ
      </Typography>

 

โœจโœจโœจ