OpenAI releases apps-sdk-ui for building ChatGPT app interfaces

OpenAI has open-sourced apps-sdk-ui, a React and Tailwind component library designed specifically for building interactive interfaces inside ChatGPT apps.

cpaua3 min12
OpenAI releases apps-sdk-ui for building ChatGPT app interfaces

OpenAI has published the source code for apps-sdk-ui, a lightweight design system that lets developers build high-quality ChatGPT apps without designing interfaces from scratch. The library provides ready-made components — buttons, chat elements, tooltips, color schemes, and responsive layouts — all built on React and Tailwind 4 for use inside the ChatGPT environment.

Design tokens and Tailwind 4 integration

The package ships design tokens for colors, typography, spacing, sizing, shadows, and surfaces. These tokens are pre-configured for Tailwind 4, so utility classes map directly to the Apps SDK UI design language. Developers import the foundation styles and Tailwind layers once, then use standard Tailwind classes alongside the provided components.

Accessible components built on Radix primitives

Every component in the library is built on Radix UI primitives, ensuring consistent accessibility behavior and styling. The component set includes Badge, Button, ButtonLink, TextLink, and a collection of icons such as Calendar, Invoice, Maps, Members, and Phone. These primitives handle focus management, keyboard navigation, and ARIA attributes automatically.

Installation and style setup

Apps SDK UI requires React 18 or 19 and Tailwind 4. Installation uses a single package:

shellscript
npm install @openai/apps-sdk-ui

Styles are configured in the global stylesheet (for example main.css) with three imports: Tailwind itself, the Apps SDK UI CSS layer, and a @source directive pointing at the package so Tailwind can discover class references inside the components.

tsx
@import "tailwindcss";
@import "@openai/apps-sdk-ui/css";
/* Required for Tailwind to find class references in Apps SDK UI components. */
@source "../node_modules/@openai/apps-sdk-ui";

The stylesheet must be imported before any component renders, typically at the application entry point.

Optional router configuration

The AppsSDKUIProvider component lets you define a default router link component used by TextLink and ButtonLink. This is optional — links can also be passed per component via the as prop. The example below wires React Router's Link globally:

tsx
import { AppsSDKUIProvider } from "@openai/apps-sdk-ui/components/AppsSDKUIProvider"
import { Link } from "react-router"

createRoot(document.getElementById("root")!).render(
 
 
 
 
 ,
)

Building a reservation card example

The repository includes a complete example of a reservation card that combines Tailwind utility classes with Apps SDK UI components. The card displays a restaurant name, confirmation badge, date, guest count, reference code, and action buttons for calling and getting directions. Icons are imported individually from the icon package, and layout uses standard Tailwind grid and spacing utilities.

Developers targeting ChatGPT app development can now leverage this system instead of building custom UI kits. The MIT-licensed repository is hosted at openai/apps-sdk-uigithub.com/openai/apps-sdk-ui and includes Storybook documentation for component exploration.

Related reading

Sources

openai/apps-sdk-uigithub.com/openai/apps-sdk-ui
Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.