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

Function useScrollAreaContext

packages/ui/src/scroll-area.tsx:51–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49const ScrollAreaContext = React.createContext<ScrollAreaContextValue>(null as any)
50
51const useScrollAreaContext = () => {
52 const context = React.useContext(ScrollAreaContext)
53 if (context === null) {
54 throw new Error(`${SCROLL_AREA_NAME}: context is null`)
55 }
56 return context
57}
58
59type ScrollAreaElement = React.ElementRef<typeof Root.div>
60type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Root.div>

Callers 1

scroll-area.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…