Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ functions
Functions
8,660 in github.com/adobe/react-spectrum
⨍
Functions
8,660
◇
Types & classes
2,494
↓ 6 callers
Function
useTableOptions
()
packages/react-aria-components/src/Table.tsx:952
↓ 6 callers
Function
useToastState
(props: ToastStateProps = {})
packages/react-stately/src/toast/useToastState.ts:60
↓ 6 callers
Function
useUNSAFE_PortalContext
()
packages/react-aria/src/overlays/PortalProvider.tsx:44
↓ 5 callers
Function
ariaHideOutside
(targets: Element[], options?: AriaHideOutsideOptions | Element)
packages/react-aria/src/overlays/ariaHideOutside.ts:50
↓ 5 callers
Method
canSelectItem
Returns whether the given key can be selected.
packages/react-stately/src/selection/types.ts:115
↓ 5 callers
Function
cleanTypeText
* Clean type text by removing import statements and duplicate type parameters.
packages/dev/s2-docs/scripts/generateMarkdownDocs.mjs:166
↓ 5 callers
Function
constrainStart
( date: CalendarDate, aligned: CalendarDate, duration: DateDuration, locale: string, minValue?: Date
packages/react-stately/src/calendar/utils.ts:97
↓ 5 callers
Function
css
(this: MacroContext | void, content: string)
packages/@react-spectrum/ai/src/style/style-macro.ts:44
↓ 5 callers
Function
dispatchFetch
(action: Action<T, C>, fn: AsyncListLoadFunction<T, C>)
packages/react-stately/src/data/useAsyncList.ts:300
↓ 5 callers
Function
dispatchVirtualFocus
(to: Element, from: Element | null)
packages/react-aria/src/focus/virtualFocus.ts:22
↓ 5 callers
Method
findNextKey
( fromKey?: Key, pred?: (item: Node<T>) => boolean, includeDisabled = false )
packages/react-aria/src/grid/GridKeyboardDelegate.ts:113
↓ 5 callers
Method
findRow
* Returns a row matching the specified index or text content.
packages/@react-aria/test-utils/src/tree.ts:61
↓ 5 callers
Method
findText
Find a string or regular expression match before or after a position.
packages/react-stately/src/tokenfield/TokenFieldValue.ts:322
↓ 5 callers
Method
firstChild
()
packages/react-aria/src/collections/Document.ts:59
↓ 5 callers
Function
focusField
(locator: Locator)
packages/react-aria-components/test/utils/tokenFieldBrowserUtils.tsx:99
↓ 5 callers
Method
format
* Formats a number value as a string, according to the locale and options provided to the * constructor.
packages/@internationalized/number/src/NumberFormatter.ts:35
↓ 5 callers
Function
getAnchorProps
(href)
packages/dev/docs/src/utils.js:71
↓ 5 callers
Method
getCells
* Returns the tree's cells if any. Can be filtered against a specific row if provided via * `element`.
packages/@react-aria/test-utils/src/tree.ts:286
↓ 5 callers
Method
getCheckboxGroup
* Returns the checkboxgroup.
packages/@react-aria/test-utils/src/checkboxgroup.ts:145
↓ 5 callers
Function
getColorChannels
( colorSpace: ColorSpace )
packages/react-stately/src/color/Color.ts:47
↓ 5 callers
Method
getColorSpace
* Returns the color space, 'rgb', 'hsb' or 'hsl', for the current color.
packages/react-stately/src/color/types.ts:70
↓ 5 callers
Method
getColumnMaxWidth
(key: Key)
packages/react-stately/src/table/TableColumnLayout.ts:92
↓ 5 callers
Method
getColumnMinWidth
(key: Key)
packages/react-stately/src/table/TableColumnLayout.ts:88
↓ 5 callers
Method
getColumns
* Returns the columns within the table.
packages/@react-aria/test-utils/src/table.ts:536
↓ 5 callers
Function
getComponents
()
packages/dev/codemods/src/s1-to-s2/src/getComponents.ts:10
↓ 5 callers
Method
getContentSize
()
packages/react-aria/src/table/useTable.ts:43
↓ 5 callers
Method
getDatesInWeek
* Returns an array of dates in the week index counted from the provided start date, or the first * visible date if not given. The returned array al
packages/react-stately/src/calendar/types.ts:188
↓ 5 callers
Method
getDialog
* Returns the dialog if present.
packages/@react-aria/test-utils/src/dialog.ts:152
↓ 5 callers
Method
getDropTargetFromPoint
* Returns a drop target within a collection for the given x and y coordinates. The point is * provided relative to the top left corner of the colle
packages/@react-types/shared/src/dnd.d.ts:200
↓ 5 callers
Method
getEntries
Returns the entries contained within the directory.
packages/@react-types/shared/src/dnd.d.ts:96
↓ 5 callers
Function
getExtendedYear
(era: string, year: number)
packages/@internationalized/date/src/calendars/GregorianCalendar.ts:52
↓ 5 callers
Function
getFieldSelection
(textboxEl: Element)
packages/react-aria-components/test/utils/tokenFieldBrowserUtils.tsx:66
↓ 5 callers
Function
getItemElement
( collectionRef: RefObject<HTMLElement | null>, key: Key )
packages/react-aria/src/selection/utils.ts:30
↓ 5 callers
Method
getItemRect
Returns a rectangle for the item with the given key.
packages/@react-types/shared/src/collections.d.ts:139
↓ 5 callers
Method
getItems
Returns the items to drag for the given key.
packages/react-stately/src/dnd/useDraggableCollectionState.ts:54
↓ 5 callers
Function
getJsDocData
(node)
packages/dev/s2-docs/scripts/generateMarkdownDocs.mjs:1518
↓ 5 callers
Function
getKey
packages/react-stately/test/data/useTreeData.test.js:28
↓ 5 callers
Method
getKey
(key: Key)
packages/react-stately/src/selection/SelectionManager.ts:296
↓ 5 callers
Method
getKeyLeftOf
Returns the key visually to the left of the given one, or `null` for none.
packages/@react-types/shared/src/collections.d.ts:115
↓ 5 callers
Method
getKeyRightOf
Returns the key visually to the right of the given one, or `null` for none.
packages/@react-types/shared/src/collections.d.ts:118
↓ 5 callers
Function
getLastItem
(iterable: Iterable<T>)
packages/react-stately/src/collections/getChildNodes.ts:47
↓ 5 callers
Method
getLayoutInfo
(key: Key)
packages/react-stately/src/layout/WaterfallLayout.ts:255
↓ 5 callers
Method
getListbox
* Returns the combobox's listbox if present.
packages/@react-aria/test-utils/src/combobox.ts:273
↓ 5 callers
Function
getMetaKey
()
packages/@react-aria/test-utils/src/utils.ts:46
↓ 5 callers
Method
getNextKey
(key: Key, options?: {includeDisabled?: boolean})
packages/react-aria/src/selection/ListKeyboardDelegate.ts:117
↓ 5 callers
Function
getPropagationTargets
( from: Element | null | undefined, to?: Document | Window | Element | null )
packages/react-aria/src/utils/shadowdom/DOMFunctions.ts:138
↓ 5 callers
Method
getRadioGroup
* Returns the radiogroup.
packages/@react-aria/test-utils/src/radiogroup.ts:162
↓ 5 callers
Method
getSections
* Returns the menu's sections if any.
packages/@react-aria/test-utils/src/menu.ts:444
↓ 5 callers
Method
getSelectedTab
* Returns the currently selected tab in the tablist if any.
packages/@react-aria/test-utils/src/tabs.ts:193
↓ 5 callers
Method
getThumbPosition
* Returns the coordinates of the thumb relative to the upper left corner of the color area as a * percentage.
packages/react-stately/src/color/useColorAreaState.ts:73
↓ 5 callers
Method
getValuePercent
* Returns the value as a percent between the min and max of the slider. * * @param index
packages/react-stately/src/slider/useSliderState.ts:123
↓ 5 callers
Function
handler
()
packages/react-aria/src/interactions/useFocusVisible.ts:347
↓ 5 callers
Function
installMouseEvent
()
packages/@react-aria/test-utils/src/testSetup.ts:16
↓ 5 callers
Method
isCellUnavailable
Returns whether the given date is unavailable according to the `isDateUnavailable` prop.
packages/react-stately/src/calendar/types.ts:172
↓ 5 callers
Function
isCompleteRange
(value: RangeValue<T | null> | null)
packages/react-stately/src/datepicker/useDateRangePickerState.ts:394
↓ 5 callers
Function
isInvalid
( date: DateValue, minValue?: DateValue | null, maxValue?: DateValue | null )
packages/react-stately/src/calendar/utils.ts:24
↓ 5 callers
Method
isInvalid
Returns whether the given date is invalid according to the `minValue` and `maxValue` props.
packages/react-stately/src/calendar/types.ts:161
↓ 5 callers
Function
isKeyboardOpen
()
packages/react-aria/src/utils/keyboard.tsx:329
↓ 5 callers
Method
isLink
Returns whether the given key is a hyperlink.
packages/react-stately/src/selection/types.ts:121
↓ 5 callers
Function
isMacPlatform
()
packages/react-aria-components/test/utils/tokenFieldBrowserUtils.tsx:71
↓ 5 callers
Function
isNode
(value: unknown)
packages/react-aria/src/utils/typeHelpers.ts:17
↓ 5 callers
Method
isPersistedKey
Returns whether the given key, or an ancestor, is persisted.
packages/react-stately/src/virtualizer/Virtualizer.ts:101
↓ 5 callers
Method
isThumbDragging
* Whether the specific thumb is being dragged. * * @param index
packages/react-stately/src/slider/useSliderState.ts:90
↓ 5 callers
Function
isWeekend
(date: DateValue, locale: string)
packages/@internationalized/date/src/queries.ts:399
↓ 5 callers
Function
minDate
( a?: A | null, b?: B | null )
packages/@internationalized/date/src/queries.ts:355
↓ 5 callers
Function
onAction
packages/react-aria-components/stories/Autocomplete.stories.tsx:1354
↓ 5 callers
Function
onAction
(item: (typeof items)[0], action: Key)
packages/dev/s2-docs/pages/react-aria/home/ExampleApp.tsx:210
↓ 5 callers
Function
open
( shouldOpen: boolean, e: KeyboardEvent, focusStrategy: FocusStrategy = 'first' )
packages/react-aria/src/menu/useMenuTrigger.ts:63
↓ 5 callers
Function
option
perf/drivers.mjs:61
↓ 5 callers
Function
parseDateTime
(value: string)
packages/@internationalized/date/src/string.ts:77
↓ 5 callers
Function
parseNumber
(value: string, min: number, max: number)
packages/@internationalized/date/src/string.ts:205
↓ 5 callers
Method
pause
()
packages/react-stately/src/toast/useToastState.ts:195
↓ 5 callers
Function
press
(key, target, conditions)
perf/drivers.mjs:25
↓ 5 callers
Function
pxToRem
(px: string | number)
packages/@react-spectrum/s2/style/spectrum-theme.ts:50
↓ 5 callers
Function
readBundledJson
(filename: string)
packages/dev/mcp/s2/src/s2-data.ts:17
↓ 5 callers
Method
removeSelectedItems
* Removes all items from the list that are currently * in the set of selected items.
packages/react-stately/src/data/useListData.ts:107
↓ 5 callers
Function
renderEmptyState
()
packages/@adobe/react-spectrum/stories/table/Table.stories.tsx:1057
↓ 5 callers
Function
resolveColorToken
(token: string | ColorToken | ColorRef)
packages/@react-spectrum/s2/style/spectrum-theme.ts:122
↓ 5 callers
Method
resolvedOptions
Returns the resolved formatting options based on the values passed to the constructor.
packages/@internationalized/number/src/NumberFormatter.ts:78
↓ 5 callers
Function
runAfterKeyboard
(fn: QueuedCallback)
packages/react-aria/src/utils/runAfterKeyboard.ts:76
↓ 5 callers
Function
safelySetColorValue
(newColor: Color | null)
packages/react-stately/src/color/useColorFieldState.ts:108
↓ 5 callers
Function
segments
(...segs: TokenFieldSegment[])
packages/react-aria-components/test/utils/tokenFieldBrowserUtils.tsx:38
↓ 5 callers
Method
setTarget
Sets the current drop target.
packages/react-stately/src/dnd/useDroppableCollectionState.ts:56
↓ 5 callers
Function
setTokenFieldSelection
( root: Element, selectedRange: SelectedRange, fireEvent = false )
packages/react-aria/src/tokenfield/useTokenField.ts:712
↓ 5 callers
Function
text
(s: string)
packages/react-aria-components/test/utils/tokenFieldBrowserUtils.tsx:30
↓ 5 callers
Function
title
(page)
packages/dev/s2-docs/src/Nav.tsx:158
↓ 5 callers
Function
tokenFieldPositionToDOMRange
(root: Element, pos: Position)
packages/react-aria/src/tokenfield/useTokenField.ts:805
↓ 5 callers
Function
traverse
(children)
packages/@adobe/react-spectrum/stories/listbox/ListBox.stories.tsx:1222
↓ 5 callers
Function
useBreakpoint
()
packages/@adobe/react-spectrum/src/utils/BreakpointProvider.tsx:82
↓ 5 callers
Function
useCalendar
( props: AriaCalendarProps<T, M>, state: CalendarState<M> )
packages/react-aria/src/calendar/useCalendar.ts:29
↓ 5 callers
Function
useCalendarCell
( props: AriaCalendarCellProps, state: CalendarState<CalendarSelectionMode> | RangeCalendarState, ref: R
packages/react-aria/src/calendar/useCalendarCell.ts:89
↓ 5 callers
Function
useCheckboxGroupState
(props: CheckboxGroupProps = {})
packages/react-stately/src/checkbox/useCheckboxGroupState.ts:91
↓ 5 callers
Function
useColor
(value: string | Color | undefined | null)
packages/react-stately/src/color/useColor.ts:17
↓ 5 callers
Function
useColorFieldState
(props: ColorFieldProps)
packages/react-stately/src/color/useColorFieldState.ts:88
↓ 5 callers
Function
useDisclosureState
(props: DisclosureProps)
packages/react-stately/src/disclosure/useDisclosureState.ts:42
↓ 5 callers
Function
useGridList
( props: AriaGridListOptions<T>, state: ListState<T>, ref: RefObject<HTMLElement | null> )
packages/react-aria/src/gridlist/useGridList.ts:132
↓ 5 callers
Function
useGridListItem
( props: AriaGridListItemOptions, state: ListState<T> | TreeState<T>, ref: RefObject<FocusableElement |
packages/react-aria/src/gridlist/useGridListItem.ts:99
↓ 5 callers
Function
useIconFilter
()
packages/dev/s2-docs/src/IconSearchView.tsx:40
↓ 5 callers
Function
useIsSkeleton
()
packages/@react-spectrum/s2/src/Skeleton.tsx:72
↓ 5 callers
Function
useLink
(props: AriaLinkOptions, ref: RefObject<FocusableElement | null>)
packages/react-aria/src/link/useLink.ts:62
← previous
next →
501–600 of 8,660, ranked by callers