MCPcopy
hub / github.com/JedWatson/react-select / LoadingMessage

Function LoadingMessage

packages/react-select/src/components/Menu.tsx:524–548  ·  view source on GitHub ↗
({
  children = 'Loading...',
  innerProps,
  ...restProps
}: NoticeProps<Option, IsMulti, Group>)

Source from the content-addressed store, hash-verified

522};
523
524export const LoadingMessage = <
525 Option,
526 IsMulti extends boolean,
527 Group extends GroupBase<Option>
528>({
529 children = 'Loading...',
530 innerProps,
531 ...restProps
532}: NoticeProps<Option, IsMulti, Group>) => {
533 return (
534 <div
535 {...getStyleProps(
536 { ...restProps, children, innerProps },
537 'loadingMessage',
538 {
539 'menu-notice': true,
540 'menu-notice--loading': true,
541 }
542 )}
543 {...innerProps}
544 >
545 {children}
546 </div>
547 );
548};
549
550// ==============================
551// Menu Portal

Callers

nothing calls this directly

Calls 1

getStylePropsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…