We just launched our new Hygraph Studio in beta. Learn more

Hygraph
Docs

useFormSidebarExtension

useFormSidebarExtension()
Hook function for sidebar elements.

Properties

  • extension
    • config
      type object
      Global configuration of the field
    • sidebarConfig
      type object
      Configurations that display at the sidebar level
  • form
    type Object | Form
    Contains methods to interact with the content form
  • model
    type Model
    Details about the current model
  • allLocales
    type Locale
    Array of locales
  • stages
    type Stage
    Array of stages
  • entry
    • id
      type string | null
      Id of the entry
    • createdBy
      type object of type User
      Who created the entry
    • updatedBy
      type object of type User
      Who updated the entry
    • createdAt
      type string
      When it as created
    • updatedAt
      type string
      When it was updated

Returns

<FormSidebarExtensionProps | interface>