MCPcopy
hub / github.com/marmelab/react-admin / ArrayInput

Function ArrayInput

packages/ra-core/src/test-ui/ArrayInput.tsx:7–29  ·  view source on GitHub ↗
(props: ArrayInputProps)

Source from the content-addressed store, hash-verified

5import { ArrayInputBase } from '../controller/input/ArrayInputBase';
6
7export const ArrayInput = (props: ArrayInputProps) => {
8 const {
9 label,
10 children,
11 resource: resourceFromProps,
12 source: arraySource,
13 validate,
14 } = props;
15
16 return (
17 <div>
18 <div>
19 <FieldTitle
20 label={label}
21 source={arraySource}
22 resource={resourceFromProps}
23 isRequired={isRequired(validate)}
24 />
25 </div>
26 <ArrayInputBase {...props}>{children}</ArrayInputBase>
27 </div>
28 );
29};
30
31export interface ArrayInputProps
32 extends Omit<InputProps, 'disabled' | 'readOnly'> {

Callers

nothing calls this directly

Calls 1

isRequiredFunction · 0.90

Tested by

no test coverage detected