Skip to content

chore: Export PixelLoader and add brandColor prop to PromptField - #10373

Merged
devongovett merged 3 commits into
mainfrom
export-loader
Jul 28, 2026
Merged

chore: Export PixelLoader and add brandColor prop to PromptField#10373
devongovett merged 3 commits into
mainfrom
export-loader

Conversation

@devongovett

Copy link
Copy Markdown
Member

Exports PixelLoader so it can be used outside PromptField. Also adds a brandColor prop to PromptField so it's easier to set instead of needing to know to use the --brand CSS variable.

@rspbot

rspbot commented Jul 27, 2026

Copy link
Copy Markdown

@@ -140,20 +140,36 @@ function keyframesFor(cells: Cell[]): string {
}

interface PixelLoaderProps {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably export the props type too?

@rspbot

rspbot commented Jul 27, 2026

Copy link
Copy Markdown

@rspbot

rspbot commented Jul 27, 2026

Copy link
Copy Markdown
## API Changes

@react-spectrum/ai

/@react-spectrum/ai:PromptField

 PromptField {
   acceptedAttachmentTypes?: Array<string>
   attachments?: Array<PromptFieldAttachment>
+  brandColor?: string
   children: React.ReactNode
   defaultAttachments?: Array<PromptFieldAttachment>
   defaultValue?: TokenFieldValue
   hideDisclaimer?: boolean
   onAddAttachments?: (Array<PromptFieldAttachment>) => void
   onAttachmentsChange?: (Array<PromptFieldAttachment>) => void
   onChange?: (TokenFieldValue) => void
   onRemoveAttachments?: (Array<PromptFieldAttachment>) => void
   onStop?: () => void
   onSubmit?: (TokenFieldValue, Array<PromptFieldAttachment>) => void
   styles?: StyleString
   value?: TokenFieldValue
   variant?: 'balanced' | 'prominent' | 'subtle'
 }

/@react-spectrum/ai:PromptFieldProps

 PromptFieldProps {
   acceptedAttachmentTypes?: Array<string>
   attachments?: Array<PromptFieldAttachment>
+  brandColor?: string
   children: React.ReactNode
   defaultAttachments?: Array<PromptFieldAttachment>
   defaultValue?: TokenFieldValue
   hideDisclaimer?: boolean
   onAddAttachments?: (Array<PromptFieldAttachment>) => void
   onAttachmentsChange?: (Array<PromptFieldAttachment>) => void
   onChange?: (TokenFieldValue) => void
   onRemoveAttachments?: (Array<PromptFieldAttachment>) => void
   onStop?: () => void
   onSubmit?: (TokenFieldValue, Array<PromptFieldAttachment>) => void
   styles?: StyleString
   value?: TokenFieldValue
   variant?: 'balanced' | 'prominent' | 'subtle'
 }

/@react-spectrum/ai:PixelLoader

+PixelLoader {
+  className?: string
+  color?: string = 'currentColor'
+  icon?: Array<Cell> | Array<Array<Cell>>
+  isPlaying?: boolean
+  size?: number
+}

/@react-spectrum/ai:PixelLoaderProps

+PixelLoaderProps {
+  className?: string
+  color?: string = 'currentColor'
+  icon?: Array<Cell> | Array<Array<Cell>>
+  isPlaying?: boolean
+  size?: number
+}

@rspbot

rspbot commented Jul 27, 2026

Copy link
Copy Markdown

Agent Skills Changes

Modified (2)
Install

React Spectrum S2:

npx skills add https://d1pzu54gtk2aed.cloudfront.net/pr/0d94262657fb0a1ceb7501f897c96a5c987a6fc4/

React Aria:

npx skills add https://d5iwopk28bdhl.cloudfront.net/pr/0d94262657fb0a1ceb7501f897c96a5c987a6fc4/

@devongovett
devongovett added this pull request to the merge queue Jul 28, 2026
Merged via the queue into main with commit 1030e8a Jul 28, 2026
31 checks passed
@devongovett
devongovett deleted the export-loader branch July 28, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants