MCPcopy Create free account

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

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

↓ 587 callersFunctionuseContextProps
( props: T & SlotProps, ref: ForwardedRef<E> | undefined, context: Context<ContextValue<U, E>> )
packages/react-aria-components/src/utils.tsx:314
↓ 374 callersMethodpush
(name: string, children: ReactNode)
packages/dev/s2-docs/src/TypePopover.tsx:9
↓ 301 callersMethodfilter
Filters the collection using the given function.
packages/@react-types/shared/src/collections.d.ts:195
↓ 290 callersFunctionaction
(previousState: State, formData: FormData)
packages/@adobe/react-spectrum/stories/form/Form.stories.tsx:975
↓ 280 callersMethodhas
Returns whether the drag contains data of the given type.
packages/@react-types/shared/src/dnd.d.ts:191
↓ 232 callersFunctionmergeProps
(...args: T)
packages/react-aria/src/utils/mergeProps.ts:41
↓ 231 callersFunctionact
packages/@react-aria/test-utils/src/act.ts:23
↓ 223 callersMethodslice
Create a new list containing a subset of the segments.
packages/@react-spectrum/ai/src/TokenSegmentList.ts:357
↓ 210 callersFunctionclassNames
( cssModule: {[key: string]: string}, ...values: Array<string | Object | undefined> )
packages/@adobe/react-spectrum/src/utils/classNames.ts:28
↓ 184 callersMethodfn
(n: number, k = (n + hue / 60) % 6)
packages/react-stately/src/color/Color.ts:577
↓ 168 callersMethodfocus
()
packages/@react-types/shared/src/refs.d.ts:23
↓ 165 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
↓ 158 callersFunctionfilterDOMProps
( props: DOMProps & AriaLabelingProps & LinkDOMProps & GlobalDOMAttributes, opts: Options = {} )
packages/react-aria/src/utils/filterDOMProps.ts:99
↓ 158 callersFunctionuseLocale
()
packages/react-aria/src/i18n/I18nProvider.tsx:86
↓ 156 callersMethodadd
Adds a new toast to the queue.
packages/react-stately/src/toast/useToastState.ts:43
↓ 154 callersMethodtoString
Converts the color to a string in the given format.
packages/react-stately/src/color/types.ts:35
↓ 116 callersMethodsetup
()
packages/react-aria/src/dnd/DragManager.ts:194
↓ 112 callersFunctionuseLocalizedStringFormatter
(strings: LocalizedStrings<K, T>, packageName?: string)
packages/react-aria/src/i18n/useLocalizedStringFormatter.ts:55
↓ 109 callersMethodparse
(value: string)
packages/react-stately/src/color/Color.ts:269
↓ 105 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
↓ 101 callersFunctionrender
(children, scale = 'medium')
packages/@adobe/react-spectrum/test/table/TableTests.js:211
↓ 95 callersFunctiongetEventTarget
(event: T)
packages/react-aria/src/utils/shadowdom/DOMFunctions.ts:75
↓ 93 callersMethodset
Sets the given field.
packages/react-stately/src/datepicker/IncompleteDate.ts:102
↓ 86 callersFunctionuseId
(defaultId?: string)
packages/react-aria/src/utils/useId.ts:39
↓ 84 callersMethodgetItem
(key: Key)
packages/react-aria-components/src/TreeDropTargetDelegate.ts:12
↓ 80 callersFunctionrender
(props = {})
packages/react-aria/stories/grid/useGrid.stories.tsx:46
↓ 79 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
↓ 78 callersFunctionuseStyleProps
( props: T, handlers: StyleHandlers = baseStyleProps, options: StylePropsOptions = {} )
packages/@adobe/react-spectrum/src/utils/styleProps.ts:276
↓ 77 callersFunctionuseListData
(options: ListOptions<T>)
packages/react-stately/src/data/useListData.ts:157
↓ 75 callersMethodsort
Calls the provided onSortChange handler with the provided column key and sort direction.
packages/react-stately/src/table/useTableState.ts:62
↓ 74 callersMethodaddEventListener
()
packages/react-aria/src/collections/Document.ts:222
↓ 73 callersFunctionrequire
(id)
packages/dev/test-utils/src/ssrUtils.js:27
↓ 72 callersFunctionrender
(args)
packages/react-aria-components/stories/ListBox.stories.tsx:304
↓ 72 callersFunctionuseHover
(props: HoverProps)
packages/react-aria/src/interactions/useHover.ts:92
↓ 69 callersMethoddelete
Delete text at a position using a segmenter.
packages/@react-spectrum/ai/src/TokenSegmentList.ts:301
↓ 67 callersFunctionuseFocusRing
(props: AriaFocusRingProps = {})
packages/react-aria/src/focus/useFocusRing.ts:40
↓ 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 callersMethodgetItem
Get an item by its key.
packages/@react-types/shared/src/collections.d.ts:171
↓ 65 callersFunctionuseRenderProps
( props: RenderPropsHookOptions<T, E> )
packages/react-aria-components/src/utils.tsx:220
↓ 65 callersFunctionuseSpectrumContextProps
( props: T & SlotProps, ref: ForwardedRef<E>, context: Context<ContextValue<U, E>> )
packages/@react-spectrum/s2/src/useSpectrumContextProps.ts:21
↓ 62 callersMethodremoveEventListener
()
packages/react-aria/src/collections/Document.ts:223
↓ 60 callersFunctionnodeContains
( node: Node | Element | null | undefined, otherNode: Node | Element | null | undefined )
packages/react-aria/src/utils/shadowdom/DOMFunctions.ts:11
↓ 60 callersFunctiontestSSR
( filename: string, source: string, runAfterServer?: () => void )
packages/dev/test-utils/src/testSSR.tsx:33
↓ 59 callersMethodgetText
Returns the data for the given type as a string.
packages/@react-types/shared/src/dnd.d.ts:74
↓ 57 callersFunctiongetAllowedOverrides
({width = true, height = false, font = false} = {})
packages/@react-spectrum/s2/src/style-utils.ts:417
↓ 57 callersFunctionuseAsyncList
(options: AsyncListOptions<T, C>)
packages/react-stately/src/data/useAsyncList.ts:281
↓ 56 callersFunctionfocusRing
()
packages/@react-spectrum/s2/style/index.ts:78
↓ 56 callersFunctionrerender
(tree, children, scale = 'medium')
packages/@adobe/react-spectrum/test/table/TableTests.js:224
↓ 53 callersFunctioncomposeRenderProps
( // https://stackoverflow.com/questions/60898079/typescript-type-t-or-function-t-usage value: T extends a
packages/react-aria-components/src/utils.tsx:273
↓ 53 callersFunctionuseDOMRef
( ref: DOMRef<T> )
packages/@adobe/react-spectrum/src/utils/useDOMRef.ts:47
↓ 52 callersMethodsetup
(delegate: DropTargetDelegate, state: TreeState<T>, direction: Direction)
packages/react-aria-components/src/TreeDropTargetDelegate.ts:50
↓ 50 callersFunctionuseProviderProps
(props: T)
packages/@adobe/react-spectrum/src/provider/Provider.tsx:221
↓ 49 callersFunctionchain
(...callbacks: any[])
packages/react-aria/src/utils/chain.ts:16
↓ 49 callersMethodclose
* Closes a toast.
packages/react-stately/src/toast/useToastState.ts:47
↓ 49 callersMethodcreateElement
(type: string)
packages/react-aria/src/collections/Document.ts:452
↓ 49 callersMethodcreateTester
* Creates an aria pattern tester, inheriting the options provided to the original user.
packages/@react-aria/test-utils/src/user.ts:145
↓ 47 callersMethodisSelected
Returns whether the given date is currently selected.
packages/react-stately/src/calendar/types.ts:163
↓ 46 callersFunctionrender
( menu: React.ReactElement, {isDisabled, ...props}: any = {}, menuProps = {} )
packages/@adobe/react-spectrum/stories/menu/MenuTrigger.stories.tsx:734
↓ 45 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
↓ 45 callersFunctionuseDOMRef
( ref: DOMRef<T> )
packages/@react-spectrum/s2/src/useDOMRef.ts:41
↓ 44 callersFunctionrender
(props: any = {})
packages/@adobe/react-spectrum/stories/numberfield/NumberField.stories.tsx:433
↓ 43 callersFunctionuseObjectRef
( ref?: ((instance: T | null) => (() => void) | void) | MutableRefObject<T | null> | null )
packages/react-aria/src/utils/useObjectRef.ts:24
↓ 42 callersFunctionfn
(t, k)
packages/dev/parcel-packager-docs/DocsPackager.js:82
↓ 42 callersFunctiongetActiveElement
(doc: Document = document)
packages/react-aria/src/utils/shadowdom/DOMFunctions.ts:50
↓ 42 callersFunctionpressScale
( ref: RefObject<HTMLElement | null>, style?: CSSProperties | ((renderProps: R) => CSSProperties) )
packages/@react-spectrum/s2/src/pressScale.ts:36
↓ 42 callersFunctionuseControlledState
( value: T, defaultValue: T, onChange?: (v: C, ...args: any[]) => void )
packages/react-stately/src/utils/useControlledState.ts:31
↓ 40 callersMethodUNSAFE_getDOMNode
()
packages/@react-types/shared/src/refs.d.ts:16
↓ 40 callersFunctionbaseColor
( base: BaseColor | C )
packages/@react-spectrum/s2/style/spectrum-theme.ts:241
↓ 39 callersFunctionparseColor
(value: string)
packages/react-stately/src/color/Color.ts:29
↓ 38 callersFunctioncategorizeArgTypes
(category: string, args: string[])
packages/@react-spectrum/s2/stories/utils.tsx:74
↓ 38 callersFunctionuseDragAndDrop
(options: DragAndDropOptions<T>)
packages/react-aria-components/src/useDragAndDrop.tsx:147
↓ 37 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
↓ 37 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 callersMethodopen
Opens the menu.
packages/react-stately/src/select/useSelectState.ts:143
↓ 37 callersFunctionuseButton
( props: AriaButtonOptions<ElementType>, ref: RefObject<any> )
packages/react-aria/src/button/useButton.ts:177
↓ 36 callersFunctiongetActionArgs
(args: string[])
packages/@react-spectrum/s2/stories/utils.tsx:81
↓ 36 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
↓ 36 callersFunctionuseSlottedContext
( context: Context<SlottedContextValue<T>>, slot?: string | null )
packages/react-aria-components/src/utils.tsx:291
↓ 35 callersFunctionmergeStyles
(...styles: (StyleString | null | undefined)[])
packages/@react-spectrum/s2/style/runtime.ts:53
↓ 35 callersFunctionrenderHook
(render, options)
packages/dev/test-utils/src/renderOverride.tsx:40
↓ 35 callersMethodsetFocused
Sets whether the collection is focused.
packages/react-stately/src/selection/types.ts:30
↓ 35 callersFunctionsetValue
(value: Key | Key[] | null)
packages/react-stately/src/select/useSelectState.ts:180
↓ 35 callersFunctionuseFilter
(options?: Intl.CollatorOptions)
packages/react-aria/src/i18n/useFilter.ts:30
↓ 34 callersMethodhasAttribute
()
packages/react-aria/src/collections/Document.ts:418
↓ 34 callersMethodisDropTarget
Returns whether the given target is equivalent to the current drop target.
packages/react-stately/src/dnd/useDroppableCollectionState.ts:58
↓ 34 callersFunctionrender
(props = {})
packages/@adobe/react-spectrum/stories/datepicker/DateField.stories.tsx:291
↓ 33 callersFunctiongetChildNodes
( node: Node<T>, collection: Collection<Node<T>> )
packages/react-stately/src/collections/getChildNodes.ts:15
↓ 33 callersFunctiongetOwnerDocument
(el: Element | null | undefined)
packages/react-aria/src/utils/domHelpers.ts:1
↓ 32 callersMethodappendChild
(child: ElementNode<T>)
packages/react-aria/src/collections/Document.ts:126
↓ 32 callersFunctioncomposeTailwindRenderProps
( className: string | ((v: T) => string) | undefined, tw: string )
starters/tailwind/src/utils.ts:15
↓ 32 callersFunctionuseVisuallyHidden
(props: VisuallyHiddenProps = {})
packages/react-aria/src/visually-hidden/VisuallyHidden.tsx:61
↓ 31 callersFunctioninstallPointerEvent
()
packages/@react-aria/test-utils/src/testSetup.ts:74
↓ 31 callersFunctionrender
(ui: ReactElement, options: S2RenderOptions = {})
packages/@react-spectrum/s2/test/utils/render.tsx:29
↓ 31 callersFunctionuseProvider
()
packages/@adobe/react-spectrum/src/provider/Provider.tsx:210
↓ 30 callersMethodgetFirstKey
Get the first key in the collection.
packages/@react-types/shared/src/collections.d.ts:183
↓ 30 callersFunctionrender
(props: any = {})
packages/@adobe/react-spectrum/stories/progress/ProgressBar.stories.tsx:283
↓ 29 callersFunctionuseDragAndDrop
(options: DragAndDropOptions<T>)
packages/@adobe/react-spectrum/src/dnd/useDragAndDrop.ts:125
↓ 29 callersFunctionuseSlotProps
(props: T & {id?: string}, defaultSlot?: string)
packages/@adobe/react-spectrum/src/utils/Slots.tsx:22
↓ 28 callersMethodat
Get an item by the index of its key.
packages/@react-types/shared/src/collections.d.ts:174
↓ 28 callersFunctionuseResizeObserver
( options: useResizeObserverOptionsType<T> )
packages/react-aria/src/utils/useResizeObserver.ts:15
next →1–100 of 8,778, ranked by callers