Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ functions
Functions
8,778 in github.com/adobe/react-spectrum
⨍
Functions
8,778
◇
Types & classes
2,226
↓ 27 callers
Function
getLocalTimeZone
()
packages/@internationalized/date/src/queries.ts:140
↓ 27 callers
Function
render
( props: Omit<SpectrumCheckboxGroupProps, 'children'> = {}, checkboxProps: any[] = [] )
packages/@adobe/react-spectrum/chromatic/checkbox/CheckboxGroup.stories.tsx:222
↓ 27 callers
Function
repeat
( count: number | 'auto-fill' | 'auto-fit', repeat: DimensionValue | DimensionValue[] )
packages/@adobe/react-spectrum/src/layout/Grid.tsx:74
↓ 27 callers
Function
resolve
({dependency})
packages/dev/s2-docs/S2DocsResolver.js:4
↓ 26 callers
Method
getKeyAfter
(key: Key)
packages/react-aria-components/src/TreeDropTargetDelegate.ts:14
↓ 26 callers
Method
insertAfter
* Inserts items into the list after the item at the given key. * * @param key - The key of the item to insert after. * @param values - The va
packages/react-stately/src/data/useListData.ts:80
↓ 26 callers
Function
mergeRefs
( ...refs: Array<Ref<T> | MutableRefObject<T> | null | undefined> )
packages/react-aria/src/utils/mergeRefs.ts:18
↓ 25 callers
Method
next
()
packages/react-aria/src/dnd/DragManager.ts:457
↓ 25 callers
Function
removeProp
( path: NodePath<t.JSXElement>, options: { /** Prop name to remove. */ propName: string; /** I
packages/dev/codemods/src/s1-to-s2/src/codemods/shared/transforms.ts:222
↓ 25 callers
Method
update
* 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
↓ 25 callers
Function
usePress
(props: PressHookProps)
packages/react-aria/src/interactions/usePress.ts:193
↓ 24 callers
Function
getName
(path: NodePath<t.JSXElement>, identifier: t.JSXIdentifier)
packages/dev/codemods/src/s1-to-s2/src/codemods/shared/utils.ts:216
↓ 24 callers
Function
render
(props = {}, disabled = true)
packages/@adobe/react-spectrum/chromatic/textfield/TextArea.stories.tsx:204
↓ 24 callers
Function
render
(props = {})
packages/@adobe/react-spectrum/stories/datepicker/TimeField.stories.tsx:203
↓ 24 callers
Function
useEffectEvent
(fn?: T)
packages/react-aria/src/utils/useEffectEvent.ts:20
↓ 23 callers
Method
append
* Appends items to the list. * * @param values - The values to insert.
packages/react-stately/src/data/useListData.ts:87
↓ 23 callers
Method
continuePropagation
* By default, press events stop propagation to parent elements. * In cases where a handler decides not to handle a specific event, * it can call
packages/@react-types/shared/src/events.d.ts:61
↓ 23 callers
Function
generatePowerset
(states: Array<object>, exclude?: (merged) => boolean)
packages/@react-spectrum/story-utils/src/GeneratePowerset.tsx:16
↓ 23 callers
Function
getOwnerWindow
( el: (Window & typeof globalThis) | Element | null | undefined )
packages/react-aria/src/utils/domHelpers.ts:5
↓ 23 callers
Method
insertBefore
* Inserts items into the list before the item at the given key. * * @param key - The key of the item to insert before. * @param values - The
packages/react-stately/src/data/useListData.ts:72
↓ 23 callers
Method
parse
* Parses the given string to a number. Returns NaN if a valid number could not be parsed.
packages/@internationalized/number/src/NumberParser.ts:48
↓ 23 callers
Function
space
(px: number)
packages/@react-spectrum/s2/style/index.ts:42
↓ 23 callers
Function
useDragAndDrop
(options: DragAndDropOptions<T>)
packages/@react-spectrum/s2/src/useDragAndDrop.ts:30
↓ 23 callers
Function
useListState
(props: ListProps<T>)
packages/react-stately/src/list/useListState.ts:50
↓ 23 callers
Function
useTreeData
(options: TreeOptions<T>)
packages/react-stately/src/data/useTreeData.ts:152
↓ 22 callers
Method
getChannelValue
* Returns the numeric value for a given channel. * Throws an error if the channel is unsupported in the current color format.
packages/react-stately/src/color/types.ts:44
↓ 22 callers
Function
render
(props = {})
packages/@adobe/react-spectrum/stories/datepicker/DateRangePicker.stories.tsx:265
↓ 22 callers
Function
singleParagraph
()
packages/@adobe/react-spectrum/chromatic/dialog/Dialog.stories.tsx:521
↓ 22 callers
Method
subtract
Returns a new `Time` with the given duration subtracted from it.
packages/@internationalized/date/src/CalendarDate.ts:196
↓ 22 callers
Method
toDate
* Converts the date to a native JavaScript Date object, with the time set to midnight in the * given time zone.
packages/@internationalized/date/src/CalendarDate.ts:145
↓ 22 callers
Function
useCollator
(options?: Intl.CollatorOptions)
packages/react-aria/src/i18n/useCollator.ts:23
↓ 22 callers
Function
useOverlayTriggerState
(props: OverlayTriggerProps)
packages/react-stately/src/overlays/useOverlayTriggerState.ts:42
↓ 21 callers
Function
getFirstItem
(iterable: Iterable<T>)
packages/react-stately/src/collections/getChildNodes.ts:28
↓ 21 callers
Function
getImage
(index: number)
packages/@adobe/react-spectrum/stories/card/utils.ts:19
↓ 21 callers
Function
require
packages/dev/parcel-packager-ssg/SSGPackager.js:116
↓ 21 callers
Function
today
(timeZone: string)
packages/@internationalized/date/src/queries.ts:109
↓ 21 callers
Function
useFocusableRef
( ref: FocusableRef<T>, focusableRef?: RefObject<FocusableElement | null> )
packages/@adobe/react-spectrum/src/utils/useDOMRef.ts:55
↓ 21 callers
Function
useFocusableRef
( ref: FocusableRef<T, D>, focusableRef?: RefObject<T | null> )
packages/@react-spectrum/s2/src/useDOMRef.ts:49
↓ 20 callers
Function
controlFont
()
packages/@react-spectrum/s2/src/style-utils.ts:206
↓ 20 callers
Function
toCalendar
(date: T, calendar: Calendar)
packages/@internationalized/date/src/conversion.ts:338
↓ 20 callers
Function
updatePropNameAndValue
( path: NodePath<t.JSXElement>, options: { /** Prop name to replace. */ oldPropName: string; /
packages/dev/codemods/src/s1-to-s2/src/codemods/shared/transforms.ts:17
↓ 20 callers
Function
useFocusWithin
(props: FocusWithinProps)
packages/react-aria/src/interactions/useFocusWithin.ts:44
↓ 19 callers
Function
addComment
(node: any, comment: string)
packages/dev/codemods/src/s1-to-s2/src/codemods/shared/utils.ts:69
↓ 19 callers
Function
clamp
(value: number, min: number = -Infinity, max: number = Infinity)
packages/react-stately/src/utils/number.ts:17
↓ 19 callers
Function
getFocusableTreeWalker
( root: Element, opts?: FocusManagerOptions, scope?: Element[] )
packages/react-aria/src/focus/FocusScope.tsx:837
↓ 19 callers
Function
lightDark
(light: SpectrumColor, dark: SpectrumColor)
packages/@react-spectrum/s2/style/spectrum-theme.ts:294
↓ 19 callers
Function
render
(props = {}, disabled = true)
packages/@adobe/react-spectrum/chromatic/textfield/Textfield.stories.tsx:197
↓ 19 callers
Method
traverse
(node: TreeNode = this.root)
packages/react-aria/src/focus/FocusScope.tsx:1079
↓ 19 callers
Function
useFormProps
(props: T)
packages/@react-spectrum/s2/src/Form.tsx:43
↓ 18 callers
Function
centerBaseline
( props: Omit<CenterBaselineProps, 'children'> = {} )
packages/@react-spectrum/s2/src/CenterBaseline.tsx:67
↓ 18 callers
Function
children
(node)
packages/react-aria-components/src/Collection.tsx:218
↓ 18 callers
Method
copy
()
packages/@internationalized/date/src/types.ts:31
↓ 18 callers
Method
getLastKey
Get the last key in the collection.
packages/@react-types/shared/src/collections.d.ts:186
↓ 18 callers
Method
getOptions
* Returns the menu's options if present. Can be filtered to a subsection of the menu if provided * via `element`.
packages/@react-aria/test-utils/src/menu.ts:457
↓ 18 callers
Method
nextNode
()
packages/react-aria/src/utils/shadowdom/ShadowTreeWalker.ts:136
↓ 18 callers
Method
removeChild
(node: TreeNode)
packages/react-aria/src/focus/FocusScope.tsx:1113
↓ 18 callers
Function
render
(props: SpectrumSliderProps = {})
packages/@adobe/react-spectrum/stories/slider/Slider.stories.tsx:189
↓ 18 callers
Method
resolvedOptions
Returns the resolved formatting options based on the values passed to the constructor.
packages/@internationalized/date/src/DateFormatter.ts:81
↓ 18 callers
Function
useLabels
( props: DOMProps & AriaLabelingProps, defaultLabel?: string )
packages/react-aria/src/utils/useLabels.ts:22
↓ 18 callers
Function
useSlot
( initialState: boolean | (() => boolean) = true )
packages/react-aria-components/src/utils.tsx:349
↓ 18 callers
Method
withChannelValue
* Sets the numeric value for a given channel, and returns a new Color object. * Throws an error if the channel is unsupported in the current color
packages/react-stately/src/color/types.ts:49
↓ 17 callers
Method
commitValidation
Commits the realtime validation so it is displayed to the user.
packages/react-stately/src/form/useFormValidationState.ts:73
↓ 17 callers
Function
field
()
packages/@react-spectrum/s2/src/style-utils.ts:42
↓ 17 callers
Function
focusWithoutScrolling
(element: FocusableElement)
packages/react-aria/src/utils/focusWithoutScrolling.ts:31
↓ 17 callers
Function
fontRelative
(base: number, baseFontSize = 14)
packages/@react-spectrum/s2/src/style-utils.ts:38
↓ 17 callers
Function
formatTargetNode
(value: number | string | HTMLElement)
packages/@react-aria/test-utils/src/utils.ts:50
↓ 17 callers
Method
getDaysInMonth
Returns the number of days in the month of the given date.
packages/@internationalized/date/src/types.ts:75
↓ 17 callers
Method
getTrigger
* Returns the menu's trigger.
packages/@react-aria/test-utils/src/menu.ts:425
↓ 17 callers
Function
iconStyle
( this: MacroContext | void, options: IconStyle )
packages/@react-spectrum/s2/style/index.ts:170
↓ 17 callers
Method
setDragging
Sets whether the user is dragging over the calendar.
packages/react-stately/src/calendar/types.ts:225
↓ 17 callers
Method
toggleOptionSelection
* Toggles the selection of the desired menu option if possible. Defaults to using the interaction * type set on the menu tester. If necessary, will
packages/@react-aria/test-utils/src/menu.ts:189
↓ 17 callers
Function
useFormProps
(props: T)
packages/@adobe/react-spectrum/src/form/Form.tsx:71
↓ 17 callers
Function
useRouter
()
packages/dev/s2-docs/src/Router.tsx:127
↓ 16 callers
Method
isDisabled
Returns whether the given key is non-interactive, i.e. both selection and actions are disabled.
packages/react-stately/src/selection/types.ts:117
↓ 16 callers
Function
pressElement
( user: { click: (element: Element) => Promise<void>; keyboard: (keys: string) => Promise<void>;
packages/@react-aria/test-utils/src/utils.ts:137
↓ 16 callers
Function
singleParagraph
()
packages/@adobe/react-spectrum/stories/dialog/Dialog.stories.tsx:324
↓ 16 callers
Method
startViewTransition
(update: (() => void) | {update: () => void; types: string[]})
lib/viewTransitions.d.ts:14
↓ 16 callers
Function
toCalendarDateTime
( date: CalendarDate | CalendarDateTime | ZonedDateTime, time?: AnyTime )
packages/@internationalized/date/src/conversion.ts:301
↓ 16 callers
Function
visit
(node: GridNode<T>)
packages/react-stately/src/table/useTreeGridState.ts:174
↓ 15 callers
Function
announce
( message: Message, assertiveness: Assertiveness = 'assertive', timeout: number = LIVEREGION_TIMEOUT_DEL
packages/react-aria/src/live-announcer/LiveAnnouncer.tsx:25
↓ 15 callers
Method
clone
Returns a duplicate of the color value.
packages/react-stately/src/color/types.ts:37
↓ 15 callers
Function
focusSafely
(element: FocusableElement)
packages/react-aria/src/interactions/focusSafely.ts:24
↓ 15 callers
Method
getListbox
* Returns the select's listbox if present.
packages/@react-aria/test-utils/src/select.ts:261
↓ 15 callers
Function
isSameDay
(a: DateValue, b: DateValue)
packages/@internationalized/date/src/queries.ts:19
↓ 15 callers
Function
render
(props = {})
packages/@adobe/react-spectrum/stories/tabs/Tabs.stories.tsx:478
↓ 15 callers
Function
renderAlert
({...props}: SpectrumAlertDialogProps)
packages/@adobe/react-spectrum/chromatic/dialog/AlertDialog.stories.tsx:176
↓ 15 callers
Function
useDateFormatter
(options?: DateFormatterOptions)
packages/react-aria/src/i18n/useDateFormatter.ts:28
↓ 15 callers
Function
useEvent
( ref: RefObject<EventTarget | null>, event: K | (string & {}), handler?: (this: Document, ev: GlobalEve
packages/react-aria/src/utils/useEvent.ts:17
↓ 15 callers
Function
useIsSSR
()
packages/react-aria/src/ssr/SSRProvider.tsx:202
↓ 15 callers
Function
useSlotId
(depArray: ReadonlyArray<any> = [])
packages/react-aria/src/utils/useId.ts:119
↓ 15 callers
Function
useTableContext
()
packages/@adobe/react-spectrum/src/table/TableViewBase.tsx:167
↓ 14 callers
Function
Type
({type}: {type: TType})
packages/dev/s2-docs/src/types.tsx:181
↓ 14 callers
Function
clsx
(tableStyles['spectrum-Table-cell'], styles.tableCell)
packages/dev/docs/src/types.js:635
↓ 14 callers
Function
commentOutProp
( path: NodePath<t.JSXElement>, options: { /** Prop to comment out. */ propName: string; /** I
packages/dev/codemods/src/s1-to-s2/src/codemods/shared/transforms.ts:288
↓ 14 callers
Function
controlSize
(size: 'sm' | 'md' = 'md')
packages/@react-spectrum/s2/src/style-utils.ts:217
↓ 14 callers
Method
getDropOperation
Returns the drop operation for the given parameters.
packages/react-stately/src/dnd/useDroppableCollectionState.ts:60
↓ 14 callers
Function
getLibraryFromPage
(page: {name: string})
packages/dev/s2-docs/src/library.tsx:17
↓ 14 callers
Function
mockClickDefault
(opts: AddEventListenerOptions = {})
packages/dev/test-utils/src/events.ts:23
↓ 14 callers
Function
parseZonedDateTime
(value: string, disambiguation?: Disambiguation)
packages/@internationalized/date/src/string.ts:110
↓ 14 callers
Function
resolve
(specifier, context, next)
scripts/esm-support/loader.mjs:1
← previous
next →
101–200 of 8,778, ranked by callers