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

Function NoOptionsMessage

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

Source from the content-addressed store, hash-verified

496}
497
498export const NoOptionsMessage = <
499 Option,
500 IsMulti extends boolean,
501 Group extends GroupBase<Option>
502>({
503 children = 'No options',
504 innerProps,
505 ...restProps
506}: NoticeProps<Option, IsMulti, Group>) => {
507 return (
508 <div
509 {...getStyleProps(
510 { ...restProps, children, innerProps },
511 'noOptionsMessage',
512 {
513 'menu-notice': true,
514 'menu-notice--no-options': true,
515 }
516 )}
517 {...innerProps}
518 >
519 {children}
520 </div>
521 );
522};
523
524export const LoadingMessage = <
525 Option,

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…