MCPcopy Create free account
hub / github.com/editablejs/editable / switch.tsx

File switch.tsx

packages/ui/src/switch.tsx:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import * as React from 'react'
2import { useComposedRefs } from './compose-refs'
3import { useControllableState } from './hooks/use-controllable-state'
4import { usePrevious } from './hooks/use-previous'

Callers

nothing calls this directly

Calls 5

useComposedRefsFunction · 0.90
useControllableStateFunction · 0.90
composeEventHandlersFunction · 0.90
useSwitchContextFunction · 0.85
getStateFunction · 0.70

Tested by

no test coverage detected