MCPcopy Create free account

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

Functions933 in github.com/radix-ui/primitives

↓ 1 callersFunctionfindComposeRefs
(node)
scripts/check-composed-refs.mjs:75
↓ 1 callersFunctionfocusFirst
* Attempts focusing the first element in a list of candidates. * Stops when focus has actually moved.
packages/react/focus-scope/src/focus-scope.tsx:218
↓ 1 callersFunctiongetAnnounceTextContent
(container: HTMLElement)
packages/react/toast/src/toast.tsx:847
↓ 1 callersFunctiongetChildListObserver
(callback: () => void)
packages/react/collection/src/collection.tsx:292
↓ 1 callersFunctiongetClosestValueIndex
* Given a `values` array and a `nextValue`, determine which value in * the array is closest to `nextValue` and return its index. * * @example * //
packages/react/slider/src/slider.tsx:855
↓ 1 callersFunctiongetDecimalCount
(value: number)
packages/react/slider/src/slider.tsx:914
↓ 1 callersFunctiongetDirectionAwareKey
(key: string, dir?: Direction)
packages/react/roving-focus/src/roving-focus-group.tsx:342
↓ 1 callersFunctiongetElementRef
(element: React.ReactElement)
packages/react/slot/src/slot.tsx:187
↓ 1 callersFunctiongetElementRef
(element: React.ReactElement<{ ref?: React.Ref<unknown> }>)
packages/react/presence/src/presence.tsx:258
↓ 1 callersFunctiongetExitSideFromRect
(point: Point, rect: DOMRect)
packages/react/tooltip/src/tooltip.tsx:614
↓ 1 callersFunctiongetFocusIntent
(event: React.KeyboardEvent, orientation?: Orientation, dir?: Direction)
packages/react/roving-focus/src/roving-focus-group.tsx:349
↓ 1 callersFunctiongetHull
(points: Readonly<Array<P>>)
packages/react/tooltip/src/tooltip.tsx:698
↓ 1 callersFunctiongetHullPresorted
(points: Readonly<Array<P>>)
packages/react/tooltip/src/tooltip.tsx:711
↓ 1 callersFunctiongetInvalidMaxError
(propValue: string, componentName: string)
packages/react/progress/src/progress.tsx:135
↓ 1 callersFunctiongetInvalidValueError
(propValue: string, componentName: string)
packages/react/progress/src/progress.tsx:139
↓ 1 callersFunctiongetLabel
* Returns a label for each thumb when there are two or more thumbs
packages/react/slider/src/slider.tsx:837
↓ 1 callersFunctiongetMatchingClosingBraceIndex
* @param {string} content * @param {number} openingBraceIndex
internal/builder/builder.js:194
↓ 1 callersFunctiongetNextMatch
* This is the "meat" of the typeahead matching logic. It takes in all the values, * the search and the current match, and returns the next match (or
packages/react/menu/src/menu.tsx:1322
↓ 1 callersFunctiongetNextSortedValues
(prevValues: number[] = [], nextValue: number, atIndex: number)
packages/react/slider/src/slider.tsx:821
↓ 1 callersFunctiongetPaddedExitPoints
(exitPoint: Point, exitSide: Side, padding = 5)
packages/react/tooltip/src/tooltip.tsx:634
↓ 1 callersFunctiongetPointsFromRect
(rect: DOMRect)
packages/react/tooltip/src/tooltip.tsx:665
↓ 1 callersFunctiongetScrollPositionFromPointer
( pointerPos: number, pointerOffset: number, sizes: Sizes, dir: Direction = 'ltr', )
packages/react/scroll-area/src/scroll-area.tsx:927
↓ 1 callersFunctiongetSlottableElementFromSlottable
(slottable: SlottableElement, child: React.ReactNode)
packages/react/slot/src/slot.tsx:128
↓ 1 callersFunctiongetStepsBetweenValues
* Gets an array of steps between each value. * * @example * // returns [1, 9] * getStepsBetweenValues([10, 11, 20]);
packages/react/slider/src/slider.tsx:880
↓ 1 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/toast/src/toast.tsx:937
↓ 1 callersFunctiongetTabbableEdges
* Returns the first and last tabbable elements inside a container.
packages/react/focus-scope/src/focus-scope.tsx:229
↓ 1 callersFunctiongetTabbableNodes
* Returns a list of nodes that can be in the tab sequence. * @see: https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker
packages/react/hover-card/src/hover-card.tsx:396
↓ 1 callersFunctiongetThumbInBoundsOffset
* Offsets the thumb centre point while sliding to ensure it remains * within the bounds of the slider when reaching the edges
packages/react/slider/src/slider.tsx:866
↓ 1 callersFunctionhandleAndDispatchPointerDownOutsideEvent
()
packages/react/dismissable-layer/src/dismissable-layer.tsx:381
↓ 1 callersFunctionhandleDragScroll
(event: React.PointerEvent<HTMLElement>)
packages/react/scroll-area/src/scroll-area.tsx:677
↓ 1 callersFunctionhasMinStepsBetweenValues
* Verifies the minimum steps between all values is greater than or equal * to the expected minimum steps. * * @example * // returns false * hasMi
packages/react/slider/src/slider.tsx:896
↓ 1 callersFunctionisAsyncCustomMatcherEntry
( entry: CustomMatcherEntry, args: CustomMatcherArgs, )
packages/react/form/src/form.tsx:699
↓ 1 callersFunctionisElementPreceding
(a: Element, b: Element)
packages/react/collection/src/collection.tsx:277
↓ 1 callersFunctionisFormControl
(element: any)
packages/react/form/src/form.tsx:682
↓ 1 callersFunctionisFormElement
(element: Element | null | undefined)
packages/react/one-time-password-field/src/one-time-password-field.tsx:918
↓ 1 callersFunctionisFrame
(element: Element)
packages/core/primitive/src/primitive.tsx:73
↓ 1 callersFunctionisFunction
(value: unknown)
packages/react/checkbox/src/checkbox.tsx:378
↓ 1 callersFunctionisFunction
(value: unknown)
packages/react/switch/src/switch.tsx:351
↓ 1 callersFunctionisFunction
(value: unknown)
packages/react/slider/src/slider.tsx:939
↓ 1 callersFunctionisFunction
(value: unknown)
packages/react/select/src/select.tsx:1856
↓ 1 callersFunctionisFunction
(value: unknown)
packages/react/radio-group/src/radio.tsx:322
↓ 1 callersFunctionisFunction
(value: unknown)
packages/react/use-controllable-state/src/use-controllable-state.tsx:94
↓ 1 callersFunctionisHTMLElement
(node: any)
packages/react/toast/src/toast.tsx:923
↓ 1 callersFunctionisHidden
(node: HTMLElement, { upTo }: { upTo?: HTMLElement })
packages/react/focus-scope/src/focus-scope.tsx:289
↓ 1 callersFunctionisInputEvent
(event: Event)
packages/react/one-time-password-field/src/one-time-password-field.tsx:939
↓ 1 callersFunctionisOutsideInteractionIntercepted
()
packages/react/dismissable-layer/src/dismissable-layer.tsx:334
↓ 1 callersFunctionisPointInPolygon
(point: Point, polygon: Polygon)
packages/react/tooltip/src/tooltip.tsx:677
↓ 1 callersFunctionisPointInPolygon
(point: Point, polygon: Polygon)
packages/react/menu/src/menu.tsx:1342
↓ 1 callersFunctionisPointerInGraceArea
(event: React.PointerEvent, area?: Polygon)
packages/react/menu/src/menu.tsx:1361
↓ 1 callersFunctionisPromiseLike
(value: unknown)
packages/react/slot/src/slot.tsx:239
↓ 1 callersFunctionisSelectableInput
(element: any)
packages/react/focus-scope/src/focus-scope.tsx:300
↓ 1 callersFunctionisSlottable
( child: React.ReactNode, )
packages/react/slot/src/slot.tsx:210
↓ 1 callersFunctionisSyncCustomMatcherEntry
(entry: CustomMatcherEntry)
packages/react/form/src/form.tsx:706
↓ 1 callersFunctionisValidOrientation
(orientation: any)
packages/react/separator/src/separator.tsx:50
↓ 1 callersFunctionmergeProps
(slotProps: AnyProps, childProps: AnyProps)
packages/react/slot/src/slot.tsx:144
↓ 1 callersFunctionobserveElementRect
* Observes an element's rectangle on screen (getBoundingClientRect) * This is useful to track elements on the screen and attach other elements * tha
packages/core/rect/src/observe-element-rect.ts:11
↓ 1 callersMethodonItemSelect
(itemValue: string)
packages/react/navigation-menu/src/navigation-menu.tsx:288
↓ 1 callersMethodonOpenChange
(open: boolean)
packages/react/dropdown-menu/src/dropdown-menu.tsx:46
↓ 1 callersMethodonSrcChange
()
packages/react/avatar/src/avatar.test.tsx:433
↓ 1 callersFunctionrectEquals
* Returns whether 2 rects are equal in values
packages/core/rect/src/observe-element-rect.ts:97
↓ 1 callersFunctionremoveFromTabOrder
(candidates: HTMLElement[])
packages/react/navigation-menu/src/navigation-menu.tsx:1220
↓ 1 callersFunctionremoveLinks
(items: HTMLElement[])
packages/react/focus-scope/src/focus-scope.tsx:355
↓ 1 callersFunctionremoveReactModuleAugmentations
* @param {string} declarationContents
internal/builder/builder.js:133
↓ 1 callersFunctionremoveWhitespace
(value: string)
packages/react/one-time-password-field/src/one-time-password-field.tsx:922
↓ 1 callersFunctionrenderSliderInForm
(props: React.ComponentProps<typeof Slider.Root>)
packages/react/slider/src/slider.test.tsx:85
↓ 1 callersFunctionrequestIdleCallback
( window: Window, callback: IdleRequestCallback, options?: IdleRequestOptions, )
packages/react/password-toggle-field/src/password-toggle-field.tsx:486
↓ 1 callersFunctionreturnsPromise
(func: Function, args: Array<unknown>)
packages/react/form/src/form.tsx:710
↓ 1 callersFunctionroundValue
(value: number, decimalCount: number)
packages/react/slider/src/slider.tsx:934
↓ 1 callersFunctionshallowEqual
(a: any, b: any)
packages/react/collection/src/collection.tsx:263
↓ 1 callersFunctionskipBlockComment
* @param {string} content * @param {number} startIndex
internal/builder/builder.js:277
↓ 1 callersFunctionskipLineComment
* @param {string} content * @param {number} startIndex
internal/builder/builder.js:263
↓ 1 callersFunctionskipStringLiteral
* @param {string} content * @param {number} startIndex * @param {"'" | '"' | "`"} quoteCharacter
internal/builder/builder.js:238
↓ 1 callersFunctionstopPropagation
(event: Event)
apps/storybook/stories/external-overlay.tsx:51
↓ 1 callersFunctionstripLeakedReactModuleAugmentations
* Prevent global React module augmentations from leaking to consumers through published types. * @param {string} distDirectoryPath
internal/builder/builder.js:98
↓ 1 callersFunctionstripReactModuleAugmentationsFromDeclarationFile
* @param {string} declarationFilePath
internal/builder/builder.js:114
↓ 1 callersFunctiontoSafeIndex
(array: ArrayLike<any>, index: number)
packages/react/collection/src/ordered-dictionary.ts:458
↓ 1 callersFunctiontransformOrigin
(options: { arrowWidth: number; arrowHeight: number })
packages/react/popper/src/popper.tsx:425
↓ 1 callersFunctionuseDismissableLayerSurface
* Registers a node as a "dismiss surface" for the enclosing DismissableLayer
packages/react/dismissable-layer/src/dismissable-layer.tsx:277
↓ 1 callersFunctionuseFocusOutside
* Listens for when focus happens outside a react subtree. * Returns props to pass to the root (node) of the subtree we want to check.
packages/react/dismissable-layer/src/dismissable-layer.tsx:496
↓ 1 callersFunctionuseImageCount
()
packages/react/avatar/src/avatar.tsx:195
↓ 1 callersFunctionuseImageLoadingStatus
( src: string | undefined, { loadingStatus, setLoadingStatus, referrerPolicy, crossOrigin,
packages/react/avatar/src/avatar.tsx:141
↓ 1 callersFunctionuseIndeterminateToggle
( value: ProgressValue, setValue: React.Dispatch<React.SetStateAction<ProgressValue>>, )
apps/storybook/stories/progress.stories.tsx:95
↓ 1 callersFunctionuseNextFrame
(callback = () => {})
packages/react/toast/src/toast.tsx:910
↓ 1 callersFunctionusePointerDownOutside
* Listens for `pointerdown` outside a react subtree. We detect the start of the interaction on * `pointerdown`, then wait for `click` so external cod
packages/react/dismissable-layer/src/dismissable-layer.tsx:304
↓ 1 callersFunctionusePresence
(present: boolean)
packages/react/presence/src/presence.tsx:31
↓ 1 callersFunctionuseProgressValueState
(initialState: ProgressValue | (() => ProgressValue), max = 100)
apps/storybook/stories/progress.stories.tsx:89
↓ 1 callersFunctionuseStableComposedRefs
* Unlike `useComposedRefs`, the returned callback never changes identity, even * when the composed refs do. This matters in React 19: when a callback
packages/react/presence/src/presence.tsx:217
↓ 1 callersFunctionuseStateMachine
( initialState: MachineState<M>, machine: M & Machine<MachineState<M>>, )
packages/react/presence/src/use-state-machine.tsx:12
↓ 1 callersFunctionuseStateMachine
( initialState: MachineState<M>, machine: M & Machine<MachineState<M>>, )
packages/react/scroll-area/src/use-state-machine.ts:12
↓ 1 callersFunctionuseUncontrolledState
({ defaultProp, onChange, }: Omit<UseControllableStateParams<T>, 'prop'>)
packages/react/use-controllable-state/src/use-controllable-state.tsx:68
↓ 1 callersFunctionuseUpdateImageCount
(setImageCount: React.Dispatch<React.SetStateAction<number>>)
packages/react/avatar/src/avatar.tsx:214
↓ 1 callersFunctionvisit
(node)
scripts/check-composed-refs.mjs:83
↓ 1 callersFunctionwait
(ms: number)
apps/storybook/stories/slot.stories.tsx:396
↓ 1 callersFunctionwrapArray
* Wraps an array around itself at a given start index * Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a', 'b']`
packages/react/menubar/src/menubar.tsx:686
↓ 1 callersFunctionwrapArray
* Wraps an array around itself at a given start index * Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a', 'b']`
packages/react/menu/src/menu.tsx:1301
↓ 1 callersFunctionwrapArray
* Wraps an array around itself at a given start index * Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a', 'b']`
packages/react/roving-focus/src/roving-focus-group.tsx:370
↓ 1 callersFunctionwrapArray
* Wraps an array around itself at a given start index * Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a', 'b']`
packages/react/select/src/select.tsx:1934
FunctionAccessibleIcon
({ children, label })
packages/react/accessible-icon/src/accessible-icon.tsx:15
FunctionAccessibleIconTest
(props: Omit<React.ComponentProps<typeof AccessibleIcon>, 'label'>)
packages/react/accessible-icon/src/accesible-icon.test.tsx:10
FunctionAccordionTest
(props: React.ComponentProps<typeof Accordion.Root>)
packages/react/accordion/src/accordion.test.tsx:446
← previousnext →201–300 of 933, ranked by callers