UI Kit lets you build Forge app frontends with React and pre-built components that render natively in Atlassian apps. Your frontend code runs in the browser, so it can handle state changes without calling a backend function for every update.
UI Kit worker runtime is now available as part of Forge's Early Access
Program (EAP). It's currently only available in Confluence, Jira, and global: modules. Custom UI
apps aren't supported.
To join the EAP for UI Kit worker runtime, complete the signup form.
During the EAP, you can only run the worker runtime on a site enrolled in the Developer Canary Program. Deploying a worker runtime app to a Forge production environment isn't supported.
For more details, see Worker runtime (EAP) and Forge EAP, Preview, and GA.
Explore UI Kit components, which are reusable building blocks designed to streamline the development of user interfaces.
UI Kit apps use React to build their frontend, which enables you to use some React features.
To import hooks to your app:
import React, { <hook name>} from 'react';
You should be able to use any React hooks that do not rely on an underlying DOM node or depend on any synchronous operations in the browser’s event loop. Hooks are now imported from react.
useState
useEffect
useContext
useReducer
useCallback
useMemo
useRef
useDebugValue
useDeferredValue
useId
For more information on Hooks, see the Hooks API Reference official page.
Forge UI Kit allows you to use the React context in your apps. For more information, see Context - React documentation.
UI Kit supports JSX syntax, enabling developers to write declarative and highly readable code.
| Components | JSX support | |
|---|---|---|
Components imported from @forge/react | ||
Function components composed of @forge/react components | ||
| Context providers | ||
| HTML |
By default, the Forge CLI bundles your UI Kit code when you deploy or tunnel your app. To use your own bundler, such as Vite, see manual packaging (Preview).
Making API requests in UI Kit is the same as in Custom UI. Whether a request is made from the client side or from the lambda depends on the request type.
Atlassian app fetch requests can be made in the frontend through @forge/bridge, i.e. in your App.js file.
See requestJira, requestConfluence
and requestBitbucket for documentation.
These requests will need to go through the lambda, and so you will need to set up a Resolver. See Forge resolver.
Retrieve Atlassian app context via the getContext method on @forge/bridge. See Forge bridge view.
1 2 3import { view } from '@forge/bridge'; const context = await view.getContext();
@forge/react.TypeScript for resolver files causes deployment failures. You will get an error like TS2304: Cannot find the name “Forge UI“ when doing a forge deploy. You can work around this by adding a rule into the tsconfig.json file to only include the src file.Rate this page: