말줄임 처리를 유틸리티로 제공해주는 함수입니다.
ellipsisTypographyStyle(line) 으로 사용하며 말줄임 처리를 합니다.
ellipsisTypographyStyle(line)
아무 인자도 넣지 않은 경우 기본값은 1입니다.
import { css, Box, ellipsisTypographyStyle } from '@wanteddev/wds'; import type { Theme } from '@wanteddev/wds'; const Component = () => { return ( <Box sx={ellipsisTypographyStyle()} /> ) }
import { css, ellipsisTypographyStyle } from '@wanteddev/wds'; import type { Theme } from '@wanteddev/wds'; export const exampleStyle = (theme: Theme) => css` ${ellipsisTypographyStyle(3)} `;