MCPcopy Create free account
hub / github.com/adobe/react-spectrum / IndexedAccess

Function IndexedAccess

packages/dev/docs/src/types.js:170–176  ·  view source on GitHub ↗
({objectType, indexType})

Source from the content-addressed store, hash-verified

168}
169
170function IndexedAccess({objectType, indexType}) {
171 return (
172 <span>
173 <Type type={objectType} />[<Type type={indexType} />]
174 </span>
175 );
176}
177
178function StringLiteral({value}) {
179 return <span className="token hljs-string">{`'${value.replace(/'/, "\\'")}'`}</span>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected