UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

21 lines (20 loc) 738 B
import type { PropsFor } from "../../types.js"; export type EllipsisProps = PropsFor<"span", { /** Number of text lines to show before cutting off with ellipsis at end * (default `1`) */ lines?: number; /** Add padding and negative margin to the element to avoid clipping focus * styling on contained elements (default `false`) */ padded?: boolean; }>; /** * Show ellipsis `...` for text overflow, with a tooltip for full text if * overflowing. * * @see https://bifrost.intility.com/react/ellipsis * * @example * <Ellipsis>Long text</Ellipsis> */ declare const Ellipsis: import("react").ForwardRefExoticComponent<EllipsisProps & import("react").RefAttributes<HTMLSpanElement>>; export default Ellipsis;