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
↓ 9 callers
Function
fontRelative
(base: number, baseFontSize = 14)
packages/@react-spectrum/s2/src/style-utils.ts:38
↓ 9 callers
Method
getChannelName
* Returns a localized color channel name for a given channel and locale, * for use in visual or accessibility labels.
packages/react-stately/src/color/types.ts:58
↓ 9 callers
Method
getDisplayColor
()
packages/react-aria-components/src/ColorThumb.tsx:18
↓ 9 callers
Method
getKeys
Iterate over all keys in the collection.
packages/@react-types/shared/src/collections.d.ts:157
↓ 9 callers
Method
getLayoutInfo
(key: Key)
packages/react-aria/src/table/useTable.ts:42
↓ 9 callers
Method
getRowGroups
* Returns the row groups within the table.
packages/@react-aria/test-utils/src/table.ts:528
↓ 9 callers
Function
isElementInScope
(element?: Element | null, scope?: Element[] | null)
packages/react-aria/src/focus/FocusScope.tsx:498
↓ 9 callers
Function
isInternalDropOperation
(ref?: RefObject<HTMLElement | null>)
packages/react-aria/src/dnd/utils.ts:411
↓ 9 callers
Function
isScrollable
(node: Element | null, checkForOverflow?: boolean)
packages/react-aria/src/utils/isScrollable.ts:13
↓ 9 callers
Function
onSelectionChange
packages/@adobe/react-spectrum/stories/combobox/ComboBox.stories.tsx:640
↓ 9 callers
Function
renderComponent
(Component, props)
packages/@adobe/react-spectrum/test/textfield/TextArea.test.js:21
↓ 9 callers
Method
replaceRange
Replace the text between two positions with new text.
packages/react-stately/src/tokenfield/TokenFieldValue.ts:190
↓ 9 callers
Function
setFocusedDate
(date)
packages/react-stately/src/calendar/useCalendarState.ts:314
↓ 9 callers
Method
setFocusedDate
Sets the focused date.
packages/react-stately/src/calendar/types.ts:116
↓ 9 callers
Function
setSelected
(isSelected)
packages/react-aria/src/button/useToggleButtonGroup.ts:124
↓ 9 callers
Method
setValue
Sets the currently selected date.
packages/react-stately/src/calendar/types.ts:206
↓ 9 callers
Function
setupIntersectionObserverMock
({ disconnect = () => null, observe = () => null, takeRecords = () => [], unobserve = () => null }: {
packages/dev/test-utils/src/mockIntersectionObserver.ts:17
↓ 9 callers
Function
shadowDOM
()
packages/react-stately/src/flags/flags.ts:28
↓ 9 callers
Function
singleParagraph
()
packages/@adobe/react-spectrum/chromatic/dialog/Dialog.stories.tsx:486
↓ 9 callers
Method
triggerCallback
(entries: any[])
packages/dev/test-utils/src/mockIntersectionObserver.ts:57
↓ 9 callers
Function
useScale
()
packages/@react-spectrum/s2/src/utils.ts:21
↓ 9 callers
Function
useTable
( props: AriaTableProps, state: TableState<T> | TreeGridState<T>, ref: RefObject<HTMLElement | null> )
packages/react-aria/src/table/useTable.ts:64
↓ 9 callers
Function
useTreeState
(props: TreeProps<T>)
packages/react-stately/src/tree/useTreeState.ts:57
↓ 9 callers
Method
withSelectedRange
Create a new list with the caret position set to the given position.
packages/react-stately/src/tokenfield/TokenFieldValue.ts:131
↓ 8 callers
Function
animate
(steps: {time: number; perform: () => void}[])
packages/dev/s2-docs/pages/react-aria/home/utils.ts:35
↓ 8 callers
Method
copy
()
packages/@react-spectrum/s2/style/style-macro.ts:866
↓ 8 callers
Method
focusPrevious
Moves focus to the previous focusable or tabbable element in the focus scope.
packages/react-aria/src/focus/FocusScope.tsx:76
↓ 8 callers
Method
formatRange
Formats a date range as a string.
packages/@internationalized/date/src/DateFormatter.ts:44
↓ 8 callers
Method
fromJulianDay
Creates a CalendarDate in this calendar from the given Julian day number.
packages/@internationalized/date/src/types.ts:70
↓ 8 callers
Function
getAltKey
()
packages/@react-aria/test-utils/src/utils.ts:42
↓ 8 callers
Method
getFile
Returns the contents of the file as a blob.
packages/@react-types/shared/src/dnd.d.ts:85
↓ 8 callers
Function
getFormatOptions
( fieldOptions: FieldOptions, options: FormatterOptions )
packages/react-stately/src/datepicker/utils.ts:184
↓ 8 callers
Method
getKeyBefore
Get the key that comes before the given key in the collection.
packages/@react-types/shared/src/collections.d.ts:166
↓ 8 callers
Function
getLibraryLabel
(library: Library)
packages/dev/s2-docs/src/library.tsx:21
↓ 8 callers
Method
getRows
()
packages/react-aria-components/src/Table.tsx:166
↓ 8 callers
Method
getRows
* Returns the tree's rows if any.
packages/@react-aria/test-utils/src/tree.ts:271
↓ 8 callers
Method
getStringForLocale
(key: string, locale: string)
packages/@internationalized/message/src/MessageDictionary.ts:34
↓ 8 callers
Method
getThumbMinValue
* Returns the min allowed value for the specified thumb. * * @param index
packages/react-stately/src/slider/useSliderState.ts:144
↓ 8 callers
Method
getTree
* Returns the tree.
packages/@react-aria/test-utils/src/tree.ts:264
↓ 8 callers
Method
getTreeNode
(data: ScopeRef)
packages/react-aria/src/focus/FocusScope.tsx:1077
↓ 8 callers
Method
insert
* Inserts items into the list at the given index. * * @param index - The index to insert into. * @param values - The values to insert.
packages/react-stately/src/data/useListData.ts:64
↓ 8 callers
Function
isFocusable
(element: Element, options?: {skipVisibilityCheck?: boolean})
packages/react-aria/src/utils/isFocusable.ts:40
↓ 8 callers
Method
move
* Moves an item within the list. * * @param key - The key of the item to move. * @param toIndex - The index to move the item to.
packages/react-stately/src/data/useListData.ts:115
↓ 8 callers
Method
onBlur
(e: FocusEvent)
packages/react-aria/src/dnd/DragManager.ts:310
↓ 8 callers
Function
parseArgs
()
scripts/testDocs.js:7
↓ 8 callers
Function
renderComponent
(props)
packages/@adobe/react-spectrum/test/color/ColorField.test.js:24
↓ 8 callers
Function
resolveComponentPath
(componentName, file, docsSource)
packages/dev/s2-docs/scripts/generateMarkdownDocs.mjs:1372
↓ 8 callers
Function
setColorScheme
()
packages/@react-spectrum/s2/src/style-utils.ts:148
↓ 8 callers
Method
setFocused
Sets whether the collection is focused.
packages/react-stately/src/selection/types.ts:30
↓ 8 callers
Function
setValue
(newValue: DateValue | IncompleteDate | null)
packages/react-stately/src/datepicker/useDateFieldState.ts:305
↓ 8 callers
Function
toAbsolute
( date: CalendarDate | CalendarDateTime, timeZone: string, disambiguation: Disambiguation = 'compatible'
packages/@internationalized/date/src/conversion.ts:151
↓ 8 callers
Function
useDialog
( props: AriaDialogProps, ref: RefObject<FocusableElement | null> )
packages/react-aria/src/dialog/useDialog.ts:57
↓ 8 callers
Function
useFocusableRef
( ref: FocusableRef<T, D>, focusableRef?: RefObject<T | null> )
packages/@react-spectrum/ai/src/useDOMRef.ts:49
↓ 8 callers
Function
useGridCell
( props: GridCellProps, state: GridState<T, C>, ref: RefObject<FocusableElement | null> )
packages/react-aria/src/grid/useGridCell.ts:84
↓ 8 callers
Function
useInteractOutside
(props: InteractOutsideProps)
packages/react-aria/src/interactions/useInteractOutside.ts:37
↓ 8 callers
Function
useIsMobileDevice
()
packages/@adobe/react-spectrum/src/utils/useIsMobileDevice.ts:17
↓ 8 callers
Function
useListBox
( props: AriaListBoxOptions<T>, state: ListState<T>, ref: RefObject<HTMLElement | null> )
packages/react-aria/src/listbox/useListBox.ts:130
↓ 8 callers
Function
useOption
( props: AriaOptionProps, state: ListState<T>, ref: RefObject<FocusableElement | null> )
packages/react-aria/src/listbox/useOption.ts:101
↓ 8 callers
Function
useOverlayPosition
(props: AriaPositionProps)
packages/react-aria/src/overlays/useOverlayPosition.ts:180
↓ 8 callers
Function
useTableRowGroup
()
packages/react-aria/src/table/useTableRowGroup.ts:14
↓ 8 callers
Function
wrapper
({children})
packages/react-aria/test/searchfield/useSearchField.test.js:140
↓ 7 callers
Function
JoinList
({ elements, joiner, minIndent = 2, newlineBefore, neverIndent }: { elements: TType[]; joiner: s
packages/dev/s2-docs/src/types.tsx:472
↓ 7 callers
Function
Symbol
()
packages/dev/docs/src/types.js:190
↓ 7 callers
Function
addComponentImport
(path: NodePath<t.Program>, newComponentName: string)
packages/dev/codemods/src/s1-to-s2/src/codemods/shared/utils.ts:80
↓ 7 callers
Function
alignStart
( date: CalendarDate, duration: DateDuration, locale: string, minValue?: DateValue | null, maxValue?
packages/react-stately/src/calendar/utils.ts:54
↓ 7 callers
Function
createBranchComponent
( CollectionNodeClass: CollectionNodeClass<any> | string, render: (props: P, ref: ForwardedRef<E>, node: N
packages/react-aria/src/collections/CollectionBuilder.tsx:246
↓ 7 callers
Function
createFocusManager
( ref: RefObject<Element | null>, defaultOptions: FocusManagerOptions = {} )
packages/react-aria/src/focus/FocusScope.tsx:955
↓ 7 callers
Function
enableTableNestedRows
()
packages/react-stately/src/flags/flags.ts:16
↓ 7 callers
Function
end
(e: KeyboardEvent)
packages/react-aria/src/selection/useSelectableCollection.ts:314
↓ 7 callers
Function
epochFromDate
(date: AnyDateTime)
packages/@internationalized/date/src/conversion.ts:31
↓ 7 callers
Method
equals
(rect: Rect)
packages/react-stately/src/virtualizer/Rect.ts:140
↓ 7 callers
Method
formatChannelValue
* Formats the numeric value for a given channel for display according to the provided locale.
packages/react-stately/src/color/types.ts:66
↓ 7 callers
Method
getChannelRange
* Returns the minimum, maximum, and step values for a given channel.
packages/react-stately/src/color/types.ts:53
↓ 7 callers
Method
getRadios
* Returns the radios.
packages/@react-aria/test-utils/src/radiogroup.ts:169
↓ 7 callers
Method
getSelectedRows
* Returns the tree's selected rows if any.
packages/@react-aria/test-utils/src/tree.ts:278
↓ 7 callers
Method
getTable
* Returns the table.
packages/@react-aria/test-utils/src/table.ts:521
↓ 7 callers
Method
getTabs
* Returns the tabs in the tablist.
packages/@react-aria/test-utils/src/tabs.ts:186
↓ 7 callers
Method
getThumbMaxValue
* Returns the max allowed value for the specified thumb. * * @param index
packages/react-stately/src/slider/useSliderState.ts:151
↓ 7 callers
Function
insert
(index: number, ...values: T[])
packages/react-stately/src/data/useListData.ts:246
↓ 7 callers
Function
isDateUnavailable
packages/@adobe/react-spectrum/test/calendar/CalendarBase.test.js:415
↓ 7 callers
Method
isDragging
Returns whether the given key is currently being dragged.
packages/react-stately/src/dnd/useDraggableCollectionState.ts:50
↓ 7 callers
Function
isLeapYear
(year: number)
packages/@internationalized/date/src/calendars/GregorianCalendar.ts:48
↓ 7 callers
Function
keyframes
(this: MacroContext | void, css: string)
packages/@react-spectrum/s2/style/style-macro.ts:1139
↓ 7 callers
Method
lastChild
()
packages/react-aria/src/collections/Document.ts:68
↓ 7 callers
Method
navigate
Moves focus either forward or backward in the landmark sequence.
packages/react-aria/src/landmark/useLandmark.ts:82
↓ 7 callers
Function
navigateToKey
( e: KeyboardEvent, key: Key | undefined, childFocus?: FocusStrategy )
packages/react-aria/src/selection/useSelectableCollection.ts:173
↓ 7 callers
Function
percentile
(values, fraction)
perf/report.mjs:8
↓ 7 callers
Method
render
Performs layout and updates visible views as needed.
packages/react-stately/src/virtualizer/Virtualizer.ts:342
↓ 7 callers
Function
renderEmptyLoader
({isLoading, tableWidth = 400})
packages/react-aria-components/stories/Table.stories.tsx:910
↓ 7 callers
Method
replaceRangeWithSegments
Replace the text between two positions with new segments.
packages/react-stately/src/tokenfield/TokenFieldValue.ts:200
↓ 7 callers
Method
replaceSelection
Replaces the selection with only the given key.
packages/react-stately/src/selection/types.ts:100
↓ 7 callers
Function
scrollFade
(this: MacroContext | void, options: ScrollFadeOptions)
packages/@react-spectrum/ai/src/style/style-macro.ts:59
↓ 7 callers
Function
scrollIntoView
( scrollView: HTMLElement, element: HTMLElement, opts: ScrollIntoViewOpts = {} )
packages/react-aria/src/utils/scrollIntoView.ts:33
↓ 7 callers
Method
setCurrentDropTarget
(dropTarget: DropTarget | null, item?: DroppableItem)
packages/react-aria/src/dnd/DragManager.ts:552
↓ 7 callers
Method
setOpen
Sets whether the calendar popover is open.
packages/react-stately/src/datepicker/useDatePickerState.ts:74
↓ 7 callers
Method
setSelectedKey
Sets the current (selected) step.
packages/react-aria-components/src/Wizard.tsx:207
↓ 7 callers
Function
simulateMobile
(width: number = 700)
packages/@react-spectrum/test-utils/src/testSetup.ts:19
↓ 7 callers
Function
singleParagraph
()
packages/@adobe/react-spectrum/stories/dialog/Dialog.stories.tsx:308
↓ 7 callers
Method
sort
* Triggers sorting for this column in the given direction.
packages/react-aria-components/src/Table.tsx:1149
↓ 7 callers
Function
staticColor
()
packages/@react-spectrum/s2/src/style-utils.ts:195
← previous
next →
301–400 of 8,660, ranked by callers