Overview
The sunpeak Starter Kit includes pre-built React components in your project’ssrc/components/ directory. These components are built on openai/apps-sdk-ui and follow ChatGPT’s design guidelines.
Top-Level Components
- Card - A versatile card component for displaying rich content with images, headers, metadata, and action buttons.
- Carousel - A horizontal scrolling carousel for displaying multiple cards with navigation arrows and smooth transitions.
Quick Example
Customization
These components are included in your project source code, so you can modify them to fit your needs:- Edit directly: Components are in
src/components/ - Add variants: Extend with new props or styles
- Create new components: Use these as templates
Design Principles
All components follow (and are required to follow) ChatGPT’s design guidelines:Theme Support
Automatic light/dark theme adaptation
Responsive
Works on mobile, tablet, and desktop
Accessible
WCAG 2.1 AA compliant
Simple
Information and UI should be reduced to the absolute minimum to support the context
Low-Level Components
Beyond the Starter Kit components, you can use any component from@openai/apps-sdk-ui: