componentName: rtgl-sidebar
propsSchema:
  type: object
  properties:
    mode:
      type: string
    hideHeader:
      type: boolean
      default: false
    tooltip:
      type: boolean
      default: false
    showCompactTooltip:
      type: boolean
      default: false
      description: Deprecated alias for tooltip. Use tooltip instead.
    w:
      type: string
    bwr:
      type: string
    selectedItemId:
      type: string
    header:
      type: object
      properties:
        label:
          type: string
        href:
          type: string
        testId:
          type: string
        image:
          type: object
          properties:
            src:
              type: string
            width:
              type: number
            height:
              type: number
            alt:
              type: string
    items:
      type: array
      items:
        type: object
        properties:
          label:
            type: string
          title:
            type: string
            description: Deprecated item text field. Use label instead.
          slug:
            type: string
          type:
            type: string
            description: Item row type. Supports item, groupLabel, divider, and spacer.
          tooltip:
            type: string
          items:
            type: array
          testId:
            type: string
events:
  header-click:
    type: object
    properties:
      path:
        type: string
  item-click:
    type: object
    properties:
      item:
        type: object
methods:
  type: object
  properties:
    getScrollPosition:
      description: Returns the current vertical position of the internal item list.
      params: []
      returns: object
    setScrollPosition:
      description: Restores the vertical position of the internal item list and clamps it to the available scroll range.
      params:
        - top
      returns: object
