Can I use UI KIT components and hooks in a CUSTOM UI project?

Hey everyone.
I just wondering is it possible to use UI KIT components and hooks in a CUSTOM UI based project?

I think that you can use both in a single app but you’re limited to using one type per a module.

For instance, your manifest.yml could look like this:

modules:
  confluence:contextMenu:
    - key: dictionary
      function: main
      title: Define word
  jira:issuePanel:
    - key: todo-panel
      resource: main
      resolver:
        function: resolver
      title: Todos
      viewportSize: medium
      tooltip: Add a todo list
      icon: https://developer.atlassian.com/platform/forge/images/issue-panel-icon.svg
  function:
    - key: resolver
      handler: index.handler
    - key: main
      handler: index.run
resources:
  - key: main
    path: static/spa/build
permissions:
  scopes:
    - storage:app
    - read:confluence-content.summary
    - write:confluence-content
    - read:confluence-props
    - write:confluence-props

But you couldn’t import the UI Kit components and use them inside of a module that you’re using Custom UI for.

2 Likes