Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ant-design/ant-design
/ functions
Functions
4,327 in github.com/ant-design/ant-design
⨍
Functions
4,327
◇
Types & classes
860
↓ 291 callers
Function
render
(path: string)
scripts/check-site.ts:24
↓ 123 callers
Function
useStyle
()
scripts/generate-cssinjs.ts:31
↓ 104 callers
Function
useLocale
( componentName: C, defaultLocale?: Locale[C] | (() => Locale[C]), )
components/locale/useLocale.ts:11
↓ 86 callers
Function
useComponentConfig
(propName: T)
components/config-provider/context.ts:627
↓ 81 callers
Function
waitFakeTimer
(advanceTime = 1000, times = 20)
tests/utils.tsx:77
↓ 80 callers
Function
mountTest
(Component: React.ComponentType)
tests/shared/mountTest.tsx:6
↓ 76 callers
Function
useMergeSemantic
( classNamesList: MaybeFn<ClassNamesType, Props>[], stylesList: MaybeFn<StylesType, Props>[], info: { pr
components/_util/hooks/useMergeSemantic/index.ts:95
↓ 73 callers
Function
rtlTest
(Component: React.ComponentType, mockDate = false)
tests/shared/rtlTest.tsx:8
↓ 72 callers
Function
isPlainObject
(val: any)
components/_util/is.ts:17
↓ 70 callers
Function
accessibilityDemoTest
(component: string, options: Options = {})
tests/shared/accessibilityTest.tsx:179
↓ 70 callers
Function
demoTest
(component: string, options: Options = {})
tests/shared/demoTest.tsx:120
↓ 70 callers
Function
extendTest
(component: string, options: Options = {})
tests/shared/demoTest.tsx:113
↓ 69 callers
Function
act
(callback)
components/message/index.tsx:23
↓ 66 callers
Function
imageDemoTest
(component: string, options: Options = {})
tests/shared/imageTest.tsx:345
↓ 63 callers
Function
isFunction
(val: any)
components/_util/is.ts:21
↓ 61 callers
Function
genCssVar
( antCls: string, component: string, )
components/theme/util/genStyleUtils.ts:48
↓ 59 callers
Function
semanticDemoTest
(component: string, options: Options = {})
tests/shared/demoTest.tsx:168
↓ 59 callers
Function
warning
()
components/message/demo/other.tsx:21
↓ 57 callers
Function
resetComponent
(token: AliasToken, needInheritFontFamily = false)
components/style/index.tsx:12
↓ 53 callers
Function
resetWarned
()
components/_util/warning.ts:9
↓ 50 callers
Function
varName
(name)
components/theme/util/genStyleUtils.ts:53
↓ 43 callers
Function
useCSSVarCls
(prefixCls: string)
components/config-provider/hooks/useCSSVarCls.ts:6
↓ 42 callers
Function
isNumber
(val: any)
components/_util/is.ts:9
↓ 40 callers
Function
varRef
(name, fallback)
components/theme/util/genStyleUtils.ts:56
↓ 34 callers
Function
useSize
( customSize?: T | ((ctxSize: SizeType) => T), )
components/config-provider/hooks/useSize.ts:7
↓ 33 callers
Function
useSemanticRootStyle
(style?: React.CSSProperties)
components/_util/hooks/useMergeSemantic/index.ts:76
↓ 30 callers
Function
expectSemanticRootStylePriority
(element: Element | null)
tests/shared/semanticStylePriority.ts:33
↓ 29 callers
Function
rootPropsTest
( component: string | string[], customizeRender?: ( component: React.ComponentType<any> & Record<strin
tests/shared/rootPropsTest.tsx:23
↓ 29 callers
Function
useToken
Get current context Design Token. Will be different if you are using nest theme config.
components/theme/index.tsx:16
↓ 27 callers
Function
cloneElement
(element: React.ReactNode, props?: RenderProps)
components/_util/reactNode.ts:23
↓ 26 callers
Function
isNonNullable
(val: T)
components/_util/is.ts:1
↓ 25 callers
Method
toHexString
()
components/color-picker/color.ts:65
↓ 23 callers
Function
isReactRenderable
(val: T)
components/_util/is.ts:5
↓ 22 callers
Function
toArray
(candidate?: T | T[] | false)
components/form/util.ts:13
↓ 22 callers
Method
toRgbString
()
components/color-picker/color.ts:73
↓ 20 callers
Function
focusTest
( Component: React.ComponentType<any>, { refFocus = false, blurDelay = 0 } = {}, )
tests/shared/focusTest.tsx:10
↓ 19 callers
Function
setSize
(width: number, height: number)
components/upload/__tests__/uploadlist.test.tsx:45
↓ 17 callers
Function
genFocusStyle
(token: AliasToken, offset?: number)
components/style/index.tsx:75
↓ 17 callers
Function
generateColor
( color: ColorGenInput<AggregationColor> | Exclude<ColorValueType, null>, )
components/color-picker/util.ts:7
↓ 17 callers
Function
useZIndex
( componentType: ZIndexContainer | ZIndexConsumer, customZIndex?: number, )
components/_util/hooks/useZIndex.ts:59
↓ 15 callers
Function
onChange
(key: string | string[])
components/collapse/demo/mix.tsx:38
↓ 14 callers
Function
genFocusOutline
(token: AliasToken, offset?: number)
components/style/index.tsx:69
↓ 13 callers
Function
useCompactItemContext
(prefixCls: string, direction: DirectionType)
components/space/Compact.tsx:25
↓ 12 callers
Function
confirm
(config: ModalFuncProps)
components/modal/confirm.tsx:72
↓ 12 callers
Function
getStatusClassNames
( prefixCls: string, status?: ValidateStatus, hasFeedback?: boolean, )
components/_util/statusUtils.ts:9
↓ 12 callers
Function
isString
(val: any)
components/_util/is.ts:13
↓ 11 callers
Function
getMergedStatus
(contextStatus?: ValidateStatus, customStatus?: InputStatus)
components/_util/statusUtils.ts:23
↓ 11 callers
Function
getTransitionName
(rootPrefixCls: string, motion: string, transitionName?: string)
components/_util/motion.ts:47
↓ 11 callers
Function
useVariant
( component: VariantComponents, variant?: Variant, legacyBordered?: boolean, )
components/form/hooks/useVariants.ts:25
↓ 9 callers
Function
callback
()
components/anchor/Anchor.tsx:325
↓ 9 callers
Function
clearFix
()
components/style/index.tsx:54
↓ 9 callers
Function
genPurePanel
( Component: React.ComponentType<Readonly<ComponentProps>>, alignPropName?: 'align' | 'dropdownAlign' | 'p
components/_util/PurePanel.tsx:21
↓ 9 callers
Function
onItemSelect
( direction: TransferDirection, selectedKey: TransferKey, checked: boolean, multiple?: boolean
components/transfer/index.tsx:433
↓ 9 callers
Function
renderEmpty
(componentName)
components/table/demo/custom-empty.tsx:20
↓ 9 callers
Function
triggerResize
(target: Element)
tests/utils.tsx:58
↓ 9 callers
Function
useBreakpoint
()
components/grid/index.tsx:6
↓ 9 callers
Function
useOrientation
( orientation?: Orientation, vertical?: boolean, legacyDirection?: Orientation, )
components/_util/hooks/useOrientation.ts:9
↓ 8 callers
Function
act
(callback: VoidFunction)
components/notification/index.tsx:15
↓ 8 callers
Function
genCompactItemStyle
( token: FullToken<T>, options: CompactItemOptions = { focus: true }, )
components/style/compact-item.ts:104
↓ 8 callers
Function
initInputToken
(token: AliasToken)
components/input/style/token.ts:100
↓ 8 callers
Function
remove
(targetKey: TargetKey)
components/tabs/demo/size.tsx:42
↓ 8 callers
Function
resetIcon
()
components/style/index.tsx:25
↓ 8 callers
Method
toHsb
()
components/color-picker/color.ts:53
↓ 8 callers
Method
toRgb
()
components/color-picker/color.ts:69
↓ 7 callers
Function
$
(selector: string)
scripts/check-site.ts:59
↓ 7 callers
Function
awaitPromise
()
components/message/__tests__/util.ts:3
↓ 7 callers
Function
confirm
()
components/modal/demo/locale.tsx:40
↓ 7 callers
Function
genNoMotionStyle
()
components/style/motion/util.ts:3
↓ 7 callers
Function
getColumnKey
( column: ColumnType<RecordType>, defaultKey: string, )
components/table/util.ts:13
↓ 7 callers
Function
initCollapseMotion
(rootCls = defaultPrefixCls)
components/_util/motion.ts:29
↓ 7 callers
Function
onChange
(value)
components/cascader/demo/size.tsx:46
↓ 7 callers
Function
onItemSelectAll
( direction: TransferDirection, keys: TransferKey[], checkAll: boolean | 'replace', )
components/transfer/index.tsx:363
↓ 7 callers
Function
triggerMotionEnd
(selector = '.ant-message-fade-leave')
components/message/__tests__/util.ts:9
↓ 6 callers
Function
add
()
components/tabs/demo/size.tsx:29
↓ 6 callers
Function
awaitPromise
()
components/notification/__tests__/util.ts:3
↓ 6 callers
Function
close
(...args: any[])
components/modal/confirm.tsx:125
↓ 6 callers
Function
createPostFn
(titles: string[])
tests/shared/demoTest.tsx:150
↓ 6 callers
Function
genDisabledStyle
(token)
components/input/style/variants.ts:13
↓ 6 callers
Function
generate
(opt: Options)
scripts/visual-regression/reportAdapter.ts:188
↓ 6 callers
Function
getColumnPos
(index: number, pos?: string)
components/table/util.ts:26
↓ 6 callers
Function
globalConfig
()
components/config-provider/index.tsx:346
↓ 6 callers
Method
isGradient
()
components/color-picker/color.ts:77
↓ 6 callers
Function
onClose
()
components/drawer/demo/size.tsx:9
↓ 6 callers
Function
renderHook
(func: () => T)
tests/utils.tsx:35
↓ 6 callers
Function
scrollTo
(y: number, options: ScrollToOptions = {})
components/_util/scrollTo.ts:16
↓ 6 callers
Function
useClosable
( propCloseCollection?: ClosableCollection, contextCloseCollection?: ClosableCollection | null, fallback
components/_util/hooks/useClosable.tsx:161
↓ 5 callers
Function
exitProcess
(code = 1)
scripts/check-repo.ts:13
↓ 5 callers
Function
fallbackProp
(...args: T[])
components/_util/fallbackProp.ts:10
↓ 5 callers
Function
fn
()
components/_util/__tests__/util.test.tsx:49
↓ 5 callers
Function
func
(items2: LevelKeysProps[], level = 1)
components/menu/demo/sider-current.tsx:67
↓ 5 callers
Function
genBasicInputStyle
( token: InputToken, option: { largeStyle?: CSSObject; smallStyle?: CSSObject; } = {}, )
components/input/style/index.ts:59
↓ 5 callers
Function
genCollapseMotion
(token)
components/style/motion/collapse.ts:5
↓ 5 callers
Function
getArrowOffsetToken
(options: { contentRadius: number; limitVerticalRadius?: boolean; })
components/style/placementArrow.ts:18
↓ 5 callers
Function
getArrowToken
(token: AliasToken)
components/style/roundedArrow.ts:16
↓ 5 callers
Function
getScroll
(target: HTMLElement | Window | Document | null)
components/_util/getScroll.ts:7
↓ 5 callers
Function
initSlideMotion
( token: TokenWithCommonCls<AliasToken>, motionName: SlideMotionTypes, )
components/style/motion/slide.ts:139
↓ 5 callers
Function
initZoomMotion
( token: TokenWithCommonCls<AliasToken>, motionName: ZoomMotionTypes, )
components/style/motion/zoom.ts:197
↓ 5 callers
Function
onChangeComplete
(value: number | number[])
components/slider/demo/event.tsx:8
↓ 5 callers
Function
onInternalChange
( file: UploadFile, changedFileList: UploadFile[], event?: { percent: number }, )
components/upload/Upload.tsx:117
↓ 5 callers
Function
pickClosable
( context?: ContextClosable<T>, )
components/_util/hooks/useClosable.tsx:18
next →
1–100 of 4,327, ranked by callers