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

Function SingleValue

packages/react-select/src/components/SingleValue.tsx:52–71  ·  view source on GitHub ↗
(
  props: SingleValueProps<Option, IsMulti, Group>
)

Source from the content-addressed store, hash-verified

50});
51
52const SingleValue = <
53 Option,
54 IsMulti extends boolean,
55 Group extends GroupBase<Option>
56>(
57 props: SingleValueProps<Option, IsMulti, Group>
58) => {
59 const { children, isDisabled, innerProps } = props;
60 return (
61 <div
62 {...getStyleProps(props, 'singleValue', {
63 'single-value': true,
64 'single-value--is-disabled': isDisabled,
65 })}
66 {...innerProps}
67 >
68 {children}
69 </div>
70 );
71};
72
73export default SingleValue;

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…