UNPKG

@strg/react-snip

Version:

React component to clamp text to a specified number of lines.

13 lines (9 loc) 207 B
import { FC } from 'react'; declare type SnipOptions = { method?: 'css' | 'js' lines?: number midWord?: boolean ellipsis?: string } declare const ReactSnip: FC<SnipOptions>; export { ReactSnip };