UNPKG

@spark-web/text

Version:

--- title: Text storybookPath: typography-text--default isExperimentalPackage: false ---

28 lines (27 loc) 841 B
declare const strategyMap: { readonly truncate: { readonly display: "block"; readonly overflow: "hidden"; readonly textOverflow: "ellipsis"; readonly whiteSpace: "nowrap"; }; readonly nowrap: { readonly whiteSpace: "nowrap"; }; readonly breakword: { readonly display: "block"; readonly overflowWrap: "break-word"; readonly wordBreak: "break-word"; readonly wordWrap: "break-word"; }; }; export declare type TextOverflowStrategy = keyof typeof strategyMap; export declare function useOverflowStrategy(strategy?: TextOverflowStrategy): { readonly whiteSpace: "nowrap"; } | { readonly display: "block"; readonly overflowWrap: "break-word"; readonly wordBreak: "break-word"; readonly wordWrap: "break-word"; } | null; export {};