Repository navigation
Headless building blocks for the AI components (PromptField, Chat, AttachmentList)? #10865
Unanswered
dopan-DANSKE
asked this question in
Q&A
Replies: 1 comment 1 reply
|
I think we would like to eventually support AI components in RAC, but the question is timing. We've been implementing it in S2 because it's easier for us to test internally and it is evolving quickly. The goal would be to eventually extract the behaviors out as reusable headless components. For now, you could look at the source code for the ai package and follow the patterns in your own code. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi React Spectrum team, and thank you for the AI components.
We build a design system on React Aria Components with our own styling, not S2. The behaviour of
PromptField,Chat/ThreadandAttachmentListis what we would like to build on: scroll anchoring and announcements inChat, and token, completion and attachment handling inPromptField. Today these only exist in@react-spectrum/ai.Is there a plan to offer unstyled, reusable versions of these (components or hooks in
react-aria-components/react-aria), the way other S2 components build on RAC? Several of the primitives are already there (TokenField,Autocomplete,GridList), but the assembled behaviour is not.If it isn't planned, we would appreciate any guidance on the recommended way to use these components without S2.
Thank you!
All reactions