MCPcopy Create free account

hub / github.com/radix-ui/primitives / functions

Functions933 in github.com/radix-ui/primitives

↓ 191 callersMethodmap
( callbackfn: (entry: [K, V], index: number, dictionary: OrderedDict<K, V>) => U, thisArg?: any, )
packages/react/collection/src/ordered-dictionary.ts:249
↓ 158 callersFunctioncomposeEventHandlers
( originalEventHandler?: (event: E) => void, ourEventHandler?: (event: E) => void, { checkForDefaultPrev
packages/core/primitive/src/primitive.tsx:11
↓ 79 callersFunctionuseComposedRefs
* A custom hook that composes multiple refs * Accepts callback refs and RefObject(s)
packages/react/compose-refs/src/compose-refs.tsx:55
↓ 58 callersMethodfrom
(key: K, offset: number)
packages/react/collection/src/ordered-dictionary.ts:174
↓ 48 callersMethodfilter
( predicate: (entry: [K, V], index: number, dictionary: OrderedDict<K, V>) => unknown, thisArg?: any,
packages/react/collection/src/ordered-dictionary.ts:234
↓ 36 callersFunctionpointerOver
(elementText: string)
cypress/e2e/ContextMenu.cy.ts:275
↓ 33 callersFunctionpointerOver
(elementText: string)
cypress/e2e/DropdownMenu.cy.ts:248
↓ 32 callersFunctioncreateContextScope
( scopeName: string, createContextScopeDeps: CreateScope[] = [], )
packages/react/context/src/create-context.tsx:106
↓ 32 callersFunctionuseCallbackRef
* A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a * prop or avoid re-executing effects when passed as
packages/react/use-callback-ref/src/use-callback-ref.tsx:7
↓ 30 callersFunctionuseControllableState
({ prop, defaultProp, onChange = () => {}, caller, }: UseControllableStateParams<T>)
packages/react/use-controllable-state/src/use-controllable-state.tsx:18
↓ 28 callersFunctionpointerOver
(elementText: string)
cypress/e2e/Menubar.cy.ts:270
↓ 27 callersMethodindexOf
(key: K)
packages/react/collection/src/ordered-dictionary.ts:166
↓ 26 callersMethodat
(index: number)
packages/react/collection/src/ordered-dictionary.ts:152
↓ 25 callersFunctionuseId
(deterministicId?: string)
packages/react/id/src/id.tsx:8
↓ 23 callersFunctionwaitForDocumentPointerDownListener
()
packages/react/dismissable-layer/src/dismissable-layer.test.tsx:7
↓ 22 callersMethodvisitStory
( storyName: string, options?: Partial<Cypress.VisitOptions>, )
cypress/support/index.d.ts:5
↓ 20 callersFunctionshouldBeOpen
()
cypress/e2e/Dialog.cy.ts:6
↓ 19 callersMethodfind
( predicate: (entry: [K, V], index: number, dictionary: OrderedDict<K, V>) => boolean, thisArg?: any,
packages/react/collection/src/ordered-dictionary.ts:196
↓ 19 callersMethodset
(key: K, value: V)
packages/react/collection/src/ordered-dictionary.ts:15
↓ 18 callersMethoddelete
(key: K)
packages/react/collection/src/ordered-dictionary.ts:136
↓ 18 callersFunctionshouldBeClosed
()
cypress/e2e/Dialog.cy.ts:9
↓ 17 callersMethodslice
(start?: number, end?: number)
packages/react/collection/src/ordered-dictionary.ts:389
↓ 17 callersMethodsome
( predicate: (entry: [K, V], index: number, dictionary: OrderedDict<K, V>) => unknown, thisArg?: any,
packages/react/collection/src/ordered-dictionary.ts:427
↓ 16 callersFunctionanchorClass
(props: { size: 'small' | 'large' })
apps/storybook/stories/popper.stories.tsx:627
↓ 16 callersFunctioncontentClass
(props: { size: 'small' | 'large' })
apps/storybook/stories/popper.stories.tsx:637
↓ 16 callersMethodkeyAt
(index: number)
packages/react/collection/src/ordered-dictionary.ts:170
↓ 15 callersFunctionassertStableComposedRef
( renderWithRef: (ref: React.RefCallback<any>) => React.ReactElement, { maxRenders = DEFAULT_MAX_RENDERS }
internal/test-utils/ref-stability.tsx:35
↓ 15 callersFunctionrenderDismissableLayer
( props: React.ComponentProps<typeof DismissableLayer.Root> = {}, extraContent?: React.ReactNode, )
packages/react/dismissable-layer/src/dismissable-layer.test.tsx:13
↓ 15 callersFunctionuseCollection
(scope: any)
packages/react/collection/src/collection.tsx:242
↓ 14 callersFunctioncheckControlMessageAssociation
()
cypress/e2e/Form.cy.ts:10
↓ 14 callersMethodclear
()
packages/react/collection/src/ordered-dictionary.ts:131
↓ 13 callersMethodinsert
(index: number, key: K, value: V)
packages/react/collection/src/ordered-dictionary.ts:27
↓ 13 callersFunctionui
(src?: string)
packages/react/avatar/src/avatar.test.tsx:43
↓ 13 callersFunctionuseDirection
(localDir?: Direction)
packages/react/direction/src/direction.tsx:21
↓ 12 callersFunctiongetThumbValue
()
packages/react/slider/src/slider.test.tsx:19
↓ 11 callersFunctioncleanup
()
packages/react/password-toggle-field/src/password-toggle-field.tsx:311
↓ 11 callersFunctioncreateCollection
(name: string)
packages/react/collection/src/collection.tsx:30
↓ 10 callersFunctioncreateSlot
(ownerName: string)
packages/react/slot/src/slot.tsx:20
↓ 10 callersMethodevery
( predicate: (entry: [K, V], index: number, dictionary: OrderedDict<K, V>) => unknown, thisArg?: any,
packages/react/collection/src/ordered-dictionary.ts:413
↓ 10 callersMethodfindIndex
( predicate: (entry: [K, V], index: number, dictionary: OrderedDict<K, V>) => boolean, thisArg?: any,
packages/react/collection/src/ordered-dictionary.ts:210
↓ 10 callersFunctionfocusInput
(element: HTMLInputElement | null | undefined)
packages/react/one-time-password-field/src/one-time-password-field.tsx:926
↓ 9 callersMethodonOpenChange
(open: boolean)
packages/react/menu/src/menu.tsx:82
↓ 8 callersFunctionbuttonIsFocused
(identifier: number)
cypress/e2e/Toast.cy.ts:6
↓ 8 callersFunctionclamp
(value: number, [min, max]: [number, number])
packages/core/number/src/number.ts:1
↓ 8 callersFunctionfirePointerMouseClick
(target: Element)
packages/react/dismissable-layer/src/dismissable-layer.test.tsx:38
↓ 8 callersFunctionfocus
(element?: FocusableTarget | null, { select = false } = {})
packages/react/focus-scope/src/focus-scope.tsx:304
↓ 8 callersFunctiongetGuards
()
packages/react/focus-guards/src/focus-guards.test.tsx:11
↓ 8 callersFunctionisIndeterminate
(checked?: CheckedState)
packages/react/checkbox/src/checkbox.tsx:382
↓ 6 callersMethoddeleteAt
(index: number)
packages/react/collection/src/ordered-dictionary.ts:144
↓ 6 callersFunctiongetInputValues
(inputs: HTMLInputElement[])
apps/storybook/stories/one-time-password-field.stories.tsx:276
↓ 6 callersFunctionhandleChange
(event: React.ChangeEvent<HTMLFormElement>)
apps/storybook/stories/select.stories.tsx:820
↓ 6 callersMethodobserve
()
packages/react/checkbox/src/checkbox.test.tsx:16
↓ 6 callersFunctionshouldAllowOutsideInteraction
(action: 'realClick' | 'realTouch')
cypress/e2e/Dialog.cy.ts:24
↓ 6 callersFunctionuseFocusGuards
* Injects a pair of focus guards at the edges of the whole DOM tree * to ensure `focusin` & `focusout` events can be caught consistently.
packages/react/focus-guards/src/focus-guards.tsx:26
↓ 6 callersFunctionusePrevious
(value: T)
packages/react/use-previous/src/use-previous.tsx:3
↓ 6 callersFunctionuseResizeObserver
(element: HTMLElement | null, onResize: () => void)
packages/react/scroll-area/src/scroll-area.tsx:996
↓ 5 callersFunctioncontentClass
({ animated }: { animated?: boolean })
apps/storybook/stories/hover-card.stories.tsx:10
↓ 5 callersFunctiondispatchDiscreteCustomEvent
* Flush custom event dispatch * https://github.com/radix-ui/primitives/pull/1378 * * React batches *all* event handlers since version 18, this intr
packages/react/primitive/src/primitive.tsx:103
↓ 5 callersFunctiongetAnimationName
(styles: CSSStyleDeclaration | null)
packages/react/presence/src/presence.tsx:249
↓ 5 callersFunctionhandleOpen
(pointerEvent?: React.MouseEvent | React.PointerEvent)
packages/react/select/src/select.tsx:326
↓ 5 callersFunctiontoastIsFocused
(identifier: number)
cypress/e2e/Toast.cy.ts:10
↓ 5 callersFunctionupdateValues
(value: number, atIndex: number, { commit } = { commit: false })
packages/react/slider/src/slider.tsx:161
↓ 5 callersFunctionuseSize
(element: HTMLElement | null)
packages/react/use-size/src/use-size.tsx:4
↓ 5 callersFunctionwhenMouse
(handler: React.PointerEventHandler<E>)
packages/react/menu/src/menu.tsx:1367
↓ 4 callersMethodentryAt
(index: number)
packages/react/collection/src/ordered-dictionary.ts:159
↓ 4 callersFunctionexcludeTouch
(eventHandler: () => void)
packages/react/hover-card/src/hover-card.tsx:387
↓ 4 callersFunctiongetThumbSize
(sizes: Sizes)
packages/react/scroll-area/src/scroll-area.tsx:919
↓ 4 callersFunctiongetValueFromPointer
(pointerPosition: number)
packages/react/slider/src/slider.tsx:302
↓ 4 callersFunctionhandleAndDispatchCustomEvent
( name: string, handler: ((event: E) => void) | undefined, detail: { originalEvent: ReactEvent } & (E ex
packages/react/toast/src/toast.tsx:875
↓ 4 callersFunctionisIndeterminate
(checked?: CheckedState)
packages/react/menu/src/menu.tsx:1279
↓ 4 callersFunctionisNumber
(value: any)
packages/react/progress/src/progress.tsx:111
↓ 4 callersFunctionpointerExitLeftToRight
(elementText: string)
cypress/e2e/ContextMenu.cy.ts:266
↓ 4 callersFunctionpointerExitLeftToRight
(elementText: string)
cypress/e2e/DropdownMenu.cy.ts:239
↓ 4 callersFunctionpointerExitRightToLeft
(elementText: string)
cypress/e2e/ContextMenu.cy.ts:257
↓ 4 callersFunctionpointerExitRightToLeft
(elementText: string)
cypress/e2e/DropdownMenu.cy.ts:230
↓ 4 callersFunctionshouldShowPlaceholder
(value?: string)
packages/react/select/src/select.tsx:1860
↓ 4 callersFunctiontoInt
(value?: string)
packages/react/scroll-area/src/scroll-area.tsx:910
↓ 4 callersFunctionuseDebounceCallback
(callback: () => void, delay: number)
packages/react/scroll-area/src/scroll-area.tsx:986
↓ 4 callersFunctionwhenMouse
(handler: React.PointerEventHandler<E>)
packages/react/navigation-menu/src/navigation-menu.tsx:1270
↓ 4 callersFunctionwhenTouchOrPen
(handler: React.PointerEventHandler<E>)
packages/react/context-menu/src/context-menu.tsx:557
↓ 3 callersFunctionat
(array: ArrayLike<T>, index: number)
packages/react/collection/src/ordered-dictionary.ts:450
↓ 3 callersMethodchildren
(validity: ValidityState | undefined)
packages/react/form/src/form.tsx:620
↓ 3 callersMethoddisconnect
()
packages/react/checkbox/src/checkbox.test.tsx:20
↓ 3 callersFunctionfocusFirst
(candidates: HTMLElement[])
packages/react/menu/src/menu.tsx:1287
↓ 3 callersFunctionfocusFirst
(candidates: HTMLElement[])
packages/react/navigation-menu/src/navigation-menu.tsx:1210
↓ 3 callersFunctionfocusFirst
(candidates: HTMLElement[])
packages/react/toast/src/toast.tsx:955
↓ 3 callersFunctiongetCheckedState
(checked: CheckedState)
packages/react/menu/src/menu.tsx:1283
↓ 3 callersFunctiongetInvalidAttribute
(validity: ValidityState | undefined, serverInvalid: boolean)
packages/react/form/src/form.tsx:730
↓ 3 callersFunctiongetOpenState
(open: boolean)
packages/react/navigation-menu/src/navigation-menu.tsx:1258
↓ 3 callersFunctiongetSideAndAlignFromPlacement
(placement: Placement)
packages/react/popper/src/popper.tsx:462
↓ 3 callersFunctiongetState
(open?: boolean)
packages/react/collapsible/src/collapsible.tsx:227
↓ 3 callersFunctiongetState
(open: boolean)
packages/react/dialog/src/dialog.tsx:508
↓ 3 callersFunctiongetTabbableCandidates
* Returns a list of potential tabbable candidates. * * NOTE: This is only a close approximation. For example it doesn't take into account cases like
packages/react/navigation-menu/src/navigation-menu.tsx:1192
↓ 3 callersFunctiongetValidAttribute
(validity: ValidityState | undefined, serverInvalid: boolean)
packages/react/form/src/form.tsx:726
↓ 3 callersFunctionhandleClose
()
packages/react/navigation-menu/src/navigation-menu.tsx:880
↓ 3 callersFunctionhandleSelect
()
packages/react/select/src/select.tsx:1386
↓ 3 callersFunctionhandleTypeaheadSearch
(key: string)
packages/react/menu/src/menu.tsx:411
↓ 3 callersFunctionlinearScale
(input: readonly [number, number], output: readonly [number, number])
packages/react/slider/src/slider.tsx:906
↓ 3 callersFunctionmakeVirtual
()
packages/react/popper/src/popper.test.tsx:7
↓ 3 callersFunctionmoveNext
()
packages/react/accordion/src/accordion.tsx:249
next →1–100 of 933, ranked by callers