MCPcopy Create free account
hub / github.com/editablejs/editable / useDirection

Function useDirection

packages/ui/src/direction.tsx:21–24  ·  view source on GitHub ↗
(localDir?: Direction)

Source from the content-addressed store, hash-verified

19/* -----------------------------------------------------------------------------------------------*/
20
21function useDirection(localDir?: Direction) {
22 const globalDir = React.useContext(DirectionContext)
23 return localDir || globalDir || 'ltr'
24}
25
26const Provider = DirectionProvider
27

Callers 2

scroll-area.tsxFile · 0.90
MenuFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…