An object containing writingMode, direction, contentFlow, and textFlow.
Remarks
This hook observes changes to the dir attribute (on body/document) and writing-mode style (on the element).
It returns the current writing mode, text direction, and derived content/text flow.
Example
const { writingMode, direction } = useWritingMode(ref.current);
Detects the writing mode and direction of an element.