UNPKG

@allwqre/react-responsive-font-size

Version:

Set your font-size according to the parent element height.

10 lines (9 loc) 400 B
export interface OptionsObject { setFontSize?: boolean; globalVariableName?: string; lockFontSize?: boolean; } type UseResponsiveFontSizeReturn = (node: HTMLElement) => HTMLElement; type UseResponsiveFontSize = (ratio: number, optionsObject?: OptionsObject) => UseResponsiveFontSizeReturn; declare const useResponsiveFontSize: UseResponsiveFontSize; export default useResponsiveFontSize;