MCPcopy Create free account

hub / github.com/adobe/react-spectrum / functions

Functions8,660 in github.com/adobe/react-spectrum

↓ 592 callersFunctionuseContextProps
( props: T & SlotProps, ref: ForwardedRef<E> | undefined, context: Context<ContextValue<U, E>> )
packages/react-aria-components/src/utils.tsx:329
↓ 428 callersMethodpush
(name: string, children: ReactNode)
packages/dev/s2-docs/src/TypePopover.tsx:9
↓ 351 callersMethodfilter
Filters the collection using the given function.
packages/@react-types/shared/src/collections.d.ts:184
↓ 299 callersMethodhas
Returns whether the drag contains data of the given type.
packages/@react-types/shared/src/dnd.d.ts:191
↓ 268 callersFunctionmergeProps
(...args: T)
packages/react-aria/src/utils/mergeProps.ts:41
↓ 264 callersMethodslice
Create a new list containing a subset of the segments.
packages/react-stately/src/tokenfield/TokenFieldValue.ts:389
↓ 261 callersFunctionact
packages/@react-aria/test-utils/src/act.ts:23
↓ 246 callersFunctionaction
(previousState: State, formData: FormData)
packages/@adobe/react-spectrum/stories/form/Form.stories.tsx:979
↓ 217 callersMethodfn
(n: number, k = (n + hue / 60) % 6)
packages/react-stately/src/color/Color.ts:581
↓ 213 callersFunctionclassNames
( cssModule: {[key: string]: string}, ...values: Array<string | Object | undefined> )
packages/@adobe/react-spectrum/src/utils/classNames.ts:28
↓ 188 callersMethodfocus
()
packages/@react-types/shared/src/refs.d.ts:23
↓ 183 callersMethodtoString
Converts the color to a string in the given format.
packages/react-stately/src/color/types.ts:35
↓ 181 callersMethodformat
* Formats a date as a string according to the locale and format options passed to the * constructor.
packages/@internationalized/date/src/DateFormatter.ts:34
↓ 171 callersFunctionuseLocale
()
packages/react-aria/src/i18n/I18nProvider.tsx:86
↓ 169 callersFunctionfilterDOMProps
( props: DOMProps & AriaLabelingProps & LinkDOMProps & GlobalDOMAttributes, opts: Options = {} )
packages/react-aria/src/utils/filterDOMProps.ts:106
↓ 168 callersMethodadd
Adds a new toast to the queue.
packages/react-stately/src/toast/useToastState.ts:43
↓ 133 callersMethodsetup
()
packages/react-aria/src/dnd/DragManager.ts:194
↓ 129 callersFunctionuseLocalizedStringFormatter
(strings: LocalizedStrings<K, T>, packageName?: string)
packages/react-aria/src/i18n/useLocalizedStringFormatter.ts:55
↓ 118 callersMethodset
* Returns a new `Time` with the given fields set to the provided values. Other fields will be * constrained accordingly.
packages/@internationalized/date/src/CalendarDate.ts:204
↓ 112 callersMethodparse
(value: string)
packages/react-stately/src/color/Color.ts:269
↓ 104 callersFunctiongetEventTarget
(event: T)
packages/react-aria/src/utils/shadowdom/DOMFunctions.ts:117
↓ 101 callersFunctionrender
(children, scale = 'medium')
packages/@adobe/react-spectrum/test/table/TableTests.js:211
↓ 100 callersMethodset
Sets the given field.
packages/react-stately/src/datepicker/IncompleteDate.ts:102
↓ 95 callersFunctionuseFocusRing
(props: AriaFocusRingProps = {})
packages/react-aria/src/focus/useFocusRing.ts:40
↓ 94 callersMethodsort
Calls the provided onSortChange handler with the provided column key and sort direction.
packages/react-stately/src/table/useTableState.ts:69
↓ 93 callersFunctionString
(state.shouldSkipAnimation)
packages/react-stately/test/tooltip/useTooltipTriggerState.test.js:374
↓ 93 callersFunctionuseId
(defaultId?: string)
packages/react-aria/src/utils/useId.ts:40
↓ 92 callersFunctionrender
(args)
packages/react-aria-components/stories/ListBox.stories.tsx:308
↓ 90 callersFunctionuseHover
(props: HoverProps)
packages/react-aria/src/interactions/useHover.ts:97
↓ 89 callersMethodgetItem
(key: Key)
packages/react-aria-components/src/TreeDropTargetDelegate.ts:12
↓ 86 callersFunctionrender
(props = {})
packages/react-aria/stories/grid/useGrid.stories.tsx:46
↓ 79 callersMethodaddEventListener
()
packages/react-aria/src/collections/Document.ts:224
↓ 78 callersFunctionrequire
(id)
packages/dev/test-utils/src/ssrUtils.js:27
↓ 78 callersFunctionuseStyleProps
( props: T, handlers: StyleHandlers = baseStyleProps, options: StylePropsOptions = {} )
packages/@adobe/react-spectrum/src/utils/styleProps.ts:276
↓ 77 callersMethodremove
* Removes items from the list by their keys. * * @param keys - The keys of the item to remove.
packages/react-stately/src/data/useListData.ts:101
↓ 77 callersFunctionuseListData
(options: ListOptions<T>)
packages/react-stately/src/data/useListData.ts:157
↓ 75 callersMethoddelete
Delete text at a position using a segmenter.
packages/react-stately/src/tokenfield/TokenFieldValue.ts:350
↓ 73 callersFunctionnodeContains
( node: Node | Element | null | undefined, otherNode: Node | Element | null | undefined )
packages/react-aria/src/utils/shadowdom/DOMFunctions.ts:43
↓ 71 callersMethodcreateElement
(type: string)
packages/react-aria/src/collections/Document.ts:455
↓ 71 callersMethodgetItem
Get an item by its key.
packages/@react-types/shared/src/collections.d.ts:160
↓ 68 callersFunctionuseRenderProps
( props: RenderPropsHookOptions<T, E> )
packages/react-aria-components/src/utils.tsx:235
↓ 66 callersMethodremoveEventListener
()
packages/react-aria/src/collections/Document.ts:225
↓ 65 callersMethodgetItem
* Gets an item from the list by key. * * @param key - The key of the item to retrieve.
packages/react-stately/src/data/useListData.ts:56
↓ 65 callersFunctionuseSpectrumContextProps
( props: T & SlotProps, ref: ForwardedRef<E>, context: Context<ContextValue<U, E>> )
packages/@react-spectrum/s2/src/useSpectrumContextProps.ts:21
↓ 64 callersFunctionrerender
(tree, children, scale = 'medium')
packages/@adobe/react-spectrum/test/table/TableTests.js:224
↓ 63 callersMethodgetText
Returns the data for the given type as a string.
packages/@react-types/shared/src/dnd.d.ts:74
↓ 62 callersMethodclose
* Closes a toast.
packages/react-stately/src/toast/useToastState.ts:47
↓ 62 callersFunctionfocusRing
()
packages/@react-spectrum/s2/style/index.ts:78
↓ 62 callersFunctionuseAsyncList
(options: AsyncListOptions<T, C>)
packages/react-stately/src/data/useAsyncList.ts:281
↓ 61 callersFunctiontestSSR
( filename: string, source: string, runAfterServer?: () => void )
packages/dev/test-utils/src/testSSR.tsx:33
↓ 60 callersFunctiongetAllowedOverrides
({width = true, height = false, font = false} = {})
packages/@react-spectrum/s2/src/style-utils.ts:420
↓ 56 callersFunctioncomposeRenderProps
( // https://stackoverflow.com/questions/60898079/typescript-type-t-or-function-t-usage value: T extends a
packages/react-aria-components/src/utils.tsx:288
↓ 56 callersMethodsetup
(delegate: DropTargetDelegate, state: TreeState<T>, direction: Direction)
packages/react-aria-components/src/TreeDropTargetDelegate.ts:50
↓ 55 callersFunctiongetActiveElement
(doc: Document = document)
packages/react-aria/src/utils/shadowdom/DOMFunctions.ts:95
↓ 53 callersMethodappendChild
(child: ElementNode<T>)
packages/react-aria/src/collections/Document.ts:128
↓ 53 callersFunctionuseDOMRef
( ref: DOMRef<T> )
packages/@adobe/react-spectrum/src/utils/useDOMRef.ts:47
↓ 52 callersFunctiongetOwnerDocument
(target?: EventTarget | null)
packages/react-aria/src/utils/domHelpers.ts:16
↓ 52 callersFunctionuseObjectRef
( ref?: ((instance: T | null) => (() => void) | void) | MutableRefObject<T | null> | null )
packages/react-aria/src/utils/useObjectRef.ts:24
↓ 51 callersFunctionchain
(...callbacks: any[])
packages/react-aria/src/utils/chain.ts:16
↓ 51 callersMethodcreateTester
* Creates an aria pattern tester, inheriting the options provided to the original user.
packages/@react-aria/test-utils/src/user.ts:145
↓ 50 callersFunctionuseProviderProps
(props: T)
packages/@adobe/react-spectrum/src/provider/Provider.tsx:224
↓ 48 callersFunctionuseDOMRef
( ref: DOMRef<T> )
packages/@react-spectrum/s2/src/useDOMRef.ts:41
↓ 47 callersMethodisSelected
Returns whether the given date is currently selected.
packages/react-stately/src/calendar/types.ts:163
↓ 46 callersMethodcompare
* Compares this time with another. A negative result indicates that this time is before the given * one, and a positive time indicates that it is a
packages/@internationalized/date/src/CalendarDate.ts:225
↓ 46 callersFunctionfn
(t, k)
packages/dev/parcel-packager-docs/DocsPackager.js:82
↓ 46 callersMethodopen
Opens the menu.
packages/react-stately/src/select/useSelectState.ts:143
↓ 46 callersFunctionpressScale
( ref: RefObject<HTMLElement | null>, style?: CSSProperties | ((renderProps: R) => CSSProperties) )
packages/@react-spectrum/s2/src/pressScale.ts:36
↓ 46 callersFunctionuseControlledState
( value: T, defaultValue: T, onChange?: (v: C, ...args: any[]) => void )
packages/react-stately/src/utils/useControlledState.ts:31
↓ 42 callersFunctionmergeStyles
(...styles: (StyleString | null | undefined)[])
packages/@react-spectrum/s2/style/runtime.ts:53
↓ 42 callersFunctionuseDragAndDrop
(options: DragAndDropOptions<T>)
packages/react-aria-components/src/useDragAndDrop.tsx:156
↓ 41 callersFunctionbaseColor
( base: BaseColor | C )
packages/@react-spectrum/s2/style/spectrum-theme.ts:241
↓ 41 callersFunctionuseButton
( props: AriaButtonOptions<ElementType>, ref: RefObject<any> )
packages/react-aria/src/button/useButton.ts:177
↓ 40 callersMethodUNSAFE_getDOMNode
()
packages/@react-types/shared/src/refs.d.ts:16
↓ 40 callersMethodhasAttribute
()
packages/react-aria/src/collections/Document.ts:420
↓ 40 callersFunctionrender
(ui: ReactElement, options: S2RenderOptions = {})
packages/@react-spectrum/s2/test/utils/render.tsx:29
↓ 40 callersFunctionsetValue
(value: Key | Key[] | null)
packages/react-stately/src/select/useSelectState.ts:180
↓ 39 callersFunctioncomposeTailwindRenderProps
( className: string | ((v: T) => string) | undefined, tw: string )
starters/tailwind/src/utils.ts:15
↓ 39 callersFunctionparseColor
(value: string)
packages/react-stately/src/color/Color.ts:29
↓ 39 callersMethodsetFocusedKey
* Sets the focused key, and optionally, whether the first or last child of that key should * receive focus.
packages/react-stately/src/selection/types.ts:39
↓ 39 callersFunctionuseSlottedContext
( context: Context<SlottedContextValue<T>>, slot?: string | null )
packages/react-aria-components/src/utils.tsx:306
↓ 38 callersMethodat
Get an item by the index of its key.
packages/@react-types/shared/src/collections.d.ts:163
↓ 38 callersMethodmoveAfter
* Moves one or more items after a given key. * * @param key - The key of the item to move the items after. * @param keys - The keys of the it
packages/react-stately/src/data/useListData.ts:131
↓ 38 callersMethodmoveBefore
* Moves one or more items before a given key. * * @param key - The key of the item to move the items before. * @param keys - The keys of the
packages/react-stately/src/data/useListData.ts:123
↓ 37 callersFunctioncategorizeArgTypes
(category: string, args: string[])
packages/@react-spectrum/s2/stories/utils.tsx:75
↓ 37 callersFunctioninstallPointerEvent
()
packages/@react-aria/test-utils/src/testSetup.ts:74
↓ 36 callersFunctionrenderHook
(render, options)
packages/dev/test-utils/src/renderOverride.tsx:40
↓ 36 callersFunctionuseFilter
(options?: Intl.CollatorOptions)
packages/react-aria/src/i18n/useFilter.ts:30
↓ 36 callersFunctionuseKeyboard
(props: KeyboardProps)
packages/react-aria/src/interactions/useKeyboard.ts:42
↓ 35 callersFunctiongetActionArgs
(args: string[])
packages/@react-spectrum/s2/stories/utils.tsx:82
↓ 35 callersFunctiongetChildNodes
( node: Node<T>, collection: Collection<Node<T>> )
packages/react-stately/src/collections/getChildNodes.ts:15
↓ 35 callersFunctionresolve
({dependency})
packages/dev/s2-docs/S2DocsResolver.js:4
↓ 34 callersMethodisDropTarget
Returns whether the given target is equivalent to the current drop target.
packages/react-stately/src/dnd/useDroppableCollectionState.ts:58
↓ 33 callersFunctionuseEffectEvent
(fn?: T)
packages/react-aria/src/utils/useEffectEvent.ts:20
↓ 32 callersMethodgetFirstKey
Get the first key in the collection.
packages/@react-types/shared/src/collections.d.ts:172
↓ 32 callersFunctionuseVisuallyHidden
(props: VisuallyHiddenProps = {})
packages/react-aria/src/visually-hidden/VisuallyHidden.tsx:61
↓ 31 callersFunctiongetParentElement
(node: Node | Element | null | undefined)
packages/react-aria/src/utils/shadowdom/DOMFunctions.ts:82
↓ 31 callersFunctionuseProvider
()
packages/@adobe/react-spectrum/src/provider/Provider.tsx:213
↓ 30 callersMethodremoveChild
(node: TreeNode)
packages/react-aria/src/focus/FocusScope.tsx:1169
↓ 30 callersMethodsetFocused
Sets whether the current step is focused.
packages/react-aria-components/src/Wizard.tsx:225
↓ 30 callersMethodupdate
* Updates an item in the list. * * @param key - The key of the item to update. * @param newValue - The new value for the item, or a function
packages/react-stately/src/data/useListData.ts:140
next →1–100 of 8,660, ranked by callers