We're transitioning Studio from Beta to Early Availability
Hygraph
Docs

You are currently reading the Studio Docs. If you were looking for the Classic Docs check here

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>