Skip to content

Commit

Permalink
doc(core/form/inputs): add comments on block props
Browse files Browse the repository at this point in the history
  • Loading branch information
skogsmaskin committed May 30, 2023
1 parent 0cbd4f4 commit fbd7be8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/sanity/src/core/form/types/blockProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export interface BlockAnnotationProps {
__unstable_boundaryElement?: HTMLElement // Boundary element for the annotation, typically a scroll container
__unstable_referenceElement?: HTMLElement // Reference element representing the annotation in the DOM
children?: ReactNode | undefined
focused: boolean
focused: boolean // Whether the annotation data object has form focus
markers: PortableTextMarker[]
onClose: () => void
onOpen: () => void
Expand All @@ -70,7 +70,7 @@ export interface BlockAnnotationProps {
readOnly: boolean
renderDefault: (props: BlockAnnotationProps) => React.ReactElement
schemaType: ObjectSchemaType
selected: boolean
selected: boolean // Whether the object is selected in the editor
textElement: ReactElement
validation: FormNodeValidation[]
value: PortableTextObject
Expand All @@ -81,7 +81,7 @@ export interface BlockProps {
__unstable_boundaryElement?: HTMLElement // Boundary element for the block, typically a scroll container
__unstable_referenceElement?: HTMLElement // Reference element representing the block in the DOM
children?: ReactNode | undefined
focused: boolean
focused: boolean // Whether the object has form focus
markers: PortableTextMarker[]
onClose: () => void
onOpen: () => void
Expand All @@ -95,7 +95,7 @@ export interface BlockProps {
renderDefault: (props: BlockProps) => React.ReactElement
renderPreview: RenderPreviewCallback
schemaType: ObjectSchemaType
selected: boolean
selected: boolean // Whether the object is selected in the editor
validation: FormNodeValidation[]
value: PortableTextBlock
}

0 comments on commit fbd7be8

Please sign in to comment.