MCPcopy Create free account
hub / github.com/JedWatson/react-select / applyPrefixToName

Function applyPrefixToName

packages/react-select/src/utils.ts:34–42  ·  view source on GitHub ↗

String representation of component state for styling with class names. Expects an array of strings OR a string/object pair: - className(['comp', 'comp-arg', 'comp-arg-2']) @returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2' - className('comp', { some: true, state: fa

(prefix: string, name: string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

classNamesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…