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

Function Placeholder

packages/react-select/src/components/Placeholder.tsx:43–61  ·  view source on GitHub ↗
(
  props: PlaceholderProps<Option, IsMulti, Group>
)

Source from the content-addressed store, hash-verified

41});
42
43const Placeholder = <
44 Option,
45 IsMulti extends boolean,
46 Group extends GroupBase<Option>
47>(
48 props: PlaceholderProps<Option, IsMulti, Group>
49) => {
50 const { children, innerProps } = props;
51 return (
52 <div
53 {...getStyleProps(props, 'placeholder', {
54 placeholder: true,
55 })}
56 {...innerProps}
57 >
58 {children}
59 </div>
60 );
61};
62
63export default Placeholder;

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…