UNPKG

@ducor/react

Version:

admin template ui interface

16 lines (15 loc) 547 B
/** * Return type for the useHtmlDirection hook. */ export type useHtmlDirectionReturn = { htmlDirection: "ltr" | "rtl"; setHtmlDirection: (direction: "ltr" | "rtl") => void; }; /** * Custom hook to manage HTML direction. * * @returns {useHtmlDirectionReturn} An object containing HTML direction information and functions to change the direction. * @throws Will throw an error if the hook is used outside of an HtmlDirectionProvider. */ declare const useHtmlDirection: () => useHtmlDirectionReturn; export default useHtmlDirection;