@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
15 lines (14 loc) • 616 B
TypeScript
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.
*/
declare const Ellipsis: import("react").ForwardRefExoticComponent<EllipsisProps & import("react").RefAttributes<HTMLSpanElement>>;
export default Ellipsis;