Sanity Library Reference Docs
Preparing search index...
sanity
index
ArrayInputFunctionsProps
Interface ArrayInputFunctionsProps<Item, SchemaType>
Beta
These are the props an implementation of the ArrayFunctions component will receive
Hidden
interface
ArrayInputFunctionsProps
<
Item
,
SchemaType
extends
ArraySchemaType
>
{
children
?:
ReactNode
;
onChange
:
(
event
:
PatchEvent
)
=>
void
;
onItemAppend
:
(
itemValue
:
Item
)
=>
void
;
onItemPrepend
:
(
itemValue
:
Item
)
=>
void
;
onValueCreate
:
(
type
:
SchemaType
)
=>
Item
;
path
:
Path
;
readOnly
?:
boolean
;
schemaType
:
SchemaType
;
value
?:
Item
[]
;
}
Type Parameters
Item
SchemaType
extends
ArraySchemaType
Index
Properties
children?
on
Change
on
Item
Append
on
Item
Prepend
on
Value
Create
path
read
Only?
schema
Type
value?
Properties
Optional
Beta
children
children
?:
ReactNode
Beta
on
Change
onChange
:
(
event
:
PatchEvent
)
=>
void
Beta
on
Item
Append
onItemAppend
:
(
itemValue
:
Item
)
=>
void
Beta
on
Item
Prepend
onItemPrepend
:
(
itemValue
:
Item
)
=>
void
Beta
on
Value
Create
onValueCreate
:
(
type
:
SchemaType
)
=>
Item
Beta
path
path
:
Path
Optional
Beta
read
Only
readOnly
?:
boolean
Beta
schema
Type
schemaType
:
SchemaType
Optional
Beta
value
value
?:
Item
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
children
on
Change
on
Item
Append
on
Item
Prepend
on
Value
Create
path
read
Only
schema
Type
value
Sanity Library Reference Docs
Loading...
These are the props an implementation of the ArrayFunctions component will receive
Hidden