Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

docs(ChatComposerTokenElement): add playground token fixture (#5886) (#5906)

Rijul Yadav49625f58d2cc
diff --git a/packages/core/src/Chat/ChatComposerTokenElement.doc.mjs b/packages/core/src/Chat/ChatComposerTokenElement.doc.mjs
index de92827c39..4751f08127 100644
--- a/packages/core/src/Chat/ChatComposerTokenElement.doc.mjs
+++ b/packages/core/src/Chat/ChatComposerTokenElement.doc.mjs
@@ -8,6 +8,11 @@ export const docs = {
displayName: 'Chat Composer Token Element',
isHiddenFromOverview: true,
description: 'Renders a single token chip outside the contentEditable input. Wraps a badge config or custom render function in the correct data-astryx-token span so the token serializes properly and stays visually consistent with tokens inside the composer.',
+ playground: {
+ defaults: {
+ token: {value: '@astryx', label: '@astryx', variant: 'blue'},
+ },
+ },
props: [
{
name: 'token',