import './index.css'; import { CSSProperties } from 'react'; export type TextEllipsisProps = { lineHeight?: number; lineLimit?: number; /** * @default 'auto' */ hyphens?: CSSProperties['hyphens']; /** * html title属性を付与。false のときは付与せず、空文字のときは表示しない * @default true */ showTooltip?: boolean; /** * * @default false * true: use white-space: nowrap if lineLimit is 1 * false: use -webkit-line-clamp if lineLimit is 1 */ useNowrap?: boolean; } & React.ComponentPropsWithoutRef<'div'>; /** * 複数行のテキストに表示行数制限を設けて`...`で省略する */ export default function TextEllipsis({ lineHeight, lineLimit, children, title, hyphens, showTooltip, useNowrap, ...props }: TextEllipsisProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=index.d.ts.map