@assistant-ui/mcp-docs-server 0.1.31 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.docs/organized/code-examples/waterfall.md +23 -25
- package/.docs/organized/code-examples/with-a2a.md +28 -28
- package/.docs/organized/code-examples/with-ag-ui.md +35 -30
- package/.docs/organized/code-examples/with-ai-sdk-v6.md +16 -14
- package/.docs/organized/code-examples/with-artifacts.md +44 -38
- package/.docs/organized/code-examples/with-assistant-transport.md +68 -56
- package/.docs/organized/code-examples/with-browser-extension.md +357 -0
- package/.docs/organized/code-examples/with-chain-of-thought.md +425 -90
- package/.docs/organized/code-examples/with-cloud-standalone.md +30 -29
- package/.docs/organized/code-examples/with-cloud.md +16 -14
- package/.docs/organized/code-examples/with-custom-thread-list.md +19 -17
- package/.docs/organized/code-examples/with-elevenlabs-conversational.md +29 -26
- package/.docs/organized/code-examples/with-elevenlabs-scribe.md +20 -18
- package/.docs/organized/code-examples/with-expo.md +37 -31
- package/.docs/organized/code-examples/with-external-store.md +13 -11
- package/.docs/organized/code-examples/with-ffmpeg.md +327 -290
- package/.docs/organized/code-examples/with-generative-ui.md +1195 -194
- package/.docs/organized/code-examples/with-google-adk.md +13 -11
- package/.docs/organized/code-examples/with-heat-graph.md +16 -14
- package/.docs/organized/code-examples/with-image-generation.md +456 -0
- package/.docs/organized/code-examples/with-interactables.md +322 -244
- package/.docs/organized/code-examples/with-langchain.md +18 -16
- package/.docs/organized/code-examples/with-langgraph.md +95 -88
- package/.docs/organized/code-examples/with-livekit.md +30 -27
- package/.docs/organized/code-examples/with-mcp.md +754 -0
- package/.docs/organized/code-examples/with-opencode.md +70 -70
- package/.docs/organized/code-examples/with-react-hook-form.md +24 -22
- package/.docs/organized/code-examples/with-react-ink.md +4 -4
- package/.docs/organized/code-examples/with-react-router.md +20 -18
- package/.docs/organized/code-examples/with-resumable-stream.md +661 -0
- package/.docs/organized/code-examples/with-store.md +22 -20
- package/.docs/organized/code-examples/with-tanstack.md +18 -19
- package/.docs/organized/code-examples/with-tap-runtime.md +31 -28
- package/.docs/raw/docs/(docs)/architecture.mdx +43 -2
- package/.docs/raw/docs/(docs)/cli.mdx +2 -2
- package/.docs/raw/docs/(docs)/copilots/model-context.mdx +34 -26
- package/.docs/raw/docs/(docs)/copilots/motivation.mdx +32 -26
- package/.docs/raw/docs/(docs)/index.mdx +2 -2
- package/.docs/raw/docs/(docs)/installation.mdx +2 -2
- package/.docs/raw/docs/(reference)/api-reference/adapters/attachments.mdx +26 -24
- package/.docs/raw/docs/(reference)/api-reference/adapters/feedback.mdx +20 -0
- package/.docs/raw/docs/(reference)/api-reference/adapters/index.mdx +20 -12
- package/.docs/raw/docs/(reference)/api-reference/adapters/model.mdx +44 -0
- package/.docs/raw/docs/(reference)/api-reference/adapters/persistence.mdx +41 -16
- package/.docs/raw/docs/(reference)/api-reference/adapters/runtime.mdx +12 -23
- package/.docs/raw/docs/(reference)/api-reference/adapters/suggestions.mdx +20 -0
- package/.docs/raw/docs/(reference)/api-reference/context-providers/assistant-runtime-provider.mdx +37 -8
- package/.docs/raw/docs/(reference)/api-reference/context-providers/index.mdx +11 -9
- package/.docs/raw/docs/(reference)/api-reference/context-providers/scoped-providers.mdx +64 -0
- package/.docs/raw/docs/(reference)/api-reference/external-store/index.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/external-store/message-conversion.mdx +52 -0
- package/.docs/raw/docs/(reference)/api-reference/external-store/runtime.mdx +46 -0
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/index.mdx +18 -0
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/rendering.mdx +33 -0
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/spec.mdx +45 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/composer-triggers.mdx +98 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/index.mdx +18 -13
- package/.docs/raw/docs/(reference)/api-reference/hooks/model-context.mdx +31 -52
- package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +640 -0
- package/.docs/raw/docs/(reference)/api-reference/hooks/runtimes.mdx +15 -28
- package/.docs/raw/docs/(reference)/api-reference/hooks/state.mdx +64 -18
- package/.docs/raw/docs/(reference)/api-reference/hooks/utilities.mdx +434 -0
- package/.docs/raw/docs/(reference)/api-reference/integrations/cloud-ai-sdk.mdx +24 -0
- package/.docs/raw/docs/(reference)/api-reference/integrations/index.mdx +11 -12
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-ai-sdk.mdx +109 -0
- package/.docs/raw/docs/(reference)/api-reference/model-context/context.mdx +58 -0
- package/.docs/raw/docs/(reference)/api-reference/model-context/index.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/model-context/registry.mdx +20 -0
- package/.docs/raw/docs/(reference)/api-reference/overview.mdx +109 -132
- package/.docs/raw/docs/(reference)/api-reference/primitives/action-bar-more.mdx +78 -221
- package/.docs/raw/docs/(reference)/api-reference/primitives/action-bar.mdx +127 -242
- package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-if.mdx +39 -20
- package/.docs/raw/docs/(reference)/api-reference/primitives/assistant-modal.mdx +66 -87
- package/.docs/raw/docs/(reference)/api-reference/primitives/attachment.mdx +50 -58
- package/.docs/raw/docs/(reference)/api-reference/primitives/branch-picker.mdx +80 -48
- package/.docs/raw/docs/(reference)/api-reference/primitives/chain-of-thought.mdx +67 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/composer.mdx +323 -461
- package/.docs/raw/docs/(reference)/api-reference/primitives/error.mdx +36 -43
- package/.docs/raw/docs/(reference)/api-reference/primitives/index.mdx +29 -24
- package/.docs/raw/docs/(reference)/api-reference/primitives/message-part.mdx +63 -245
- package/.docs/raw/docs/(reference)/api-reference/primitives/message.mdx +202 -588
- package/.docs/raw/docs/(reference)/api-reference/primitives/queue-item.mdx +65 -0
- package/.docs/raw/docs/(reference)/api-reference/primitives/selection-toolbar.mdx +35 -22
- package/.docs/raw/docs/(reference)/api-reference/primitives/suggestion.mdx +57 -140
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list-item-more.mdx +70 -161
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list-item.mdx +84 -108
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread-list.mdx +77 -96
- package/.docs/raw/docs/(reference)/api-reference/primitives/thread.mdx +173 -349
- package/.docs/raw/docs/(reference)/api-reference/runtimes/assistant-runtime.mdx +9 -21
- package/.docs/raw/docs/(reference)/api-reference/runtimes/attachment-runtime.mdx +10 -21
- package/.docs/raw/docs/(reference)/api-reference/runtimes/composer-runtime.mdx +15 -70
- package/.docs/raw/docs/(reference)/api-reference/runtimes/index.mdx +18 -13
- package/.docs/raw/docs/(reference)/api-reference/runtimes/message-part-runtime.mdx +25 -28
- package/.docs/raw/docs/(reference)/api-reference/runtimes/message-runtime.mdx +11 -63
- package/.docs/raw/docs/(reference)/api-reference/runtimes/queue-state.mdx +20 -0
- package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-list-item-runtime.mdx +11 -48
- package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-list-runtime.mdx +10 -47
- package/.docs/raw/docs/(reference)/api-reference/runtimes/thread-runtime.mdx +18 -30
- package/.docs/raw/docs/(reference)/api-reference/tools/component-tools.mdx +85 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/index.mdx +39 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/rendering.mdx +127 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +42 -0
- package/.docs/raw/docs/(reference)/api-reference/tools/toolkits.mdx +91 -0
- package/.docs/raw/docs/(reference)/api-reference/transport/assistant-transport.mdx +48 -0
- package/.docs/raw/docs/(reference)/api-reference/transport/frame.mdx +62 -0
- package/.docs/raw/docs/(reference)/api-reference/transport/index.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/utilities/index.mdx +19 -0
- package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +143 -0
- package/.docs/raw/docs/(reference)/api-reference/voice/index.mdx +22 -0
- package/.docs/raw/docs/(reference)/api-reference/voice/session.mdx +54 -0
- package/.docs/raw/docs/(reference)/api-reference/voice/speech-dictation.mdx +36 -0
- package/.docs/raw/docs/cloud/ai-sdk.mdx +1 -3
- package/.docs/raw/docs/cloud/index.mdx +2 -2
- package/.docs/raw/docs/guides/attachments.mdx +4 -4
- package/.docs/raw/docs/guides/branching.mdx +1 -1
- package/.docs/raw/docs/guides/chain-of-thought.mdx +12 -14
- package/.docs/raw/docs/guides/context-api.mdx +6 -5
- package/.docs/raw/docs/guides/dictation.mdx +2 -2
- package/.docs/raw/docs/guides/editing.mdx +1 -1
- package/.docs/raw/docs/guides/image-generation.mdx +74 -0
- package/.docs/raw/docs/guides/index.mdx +5 -14
- package/.docs/raw/docs/guides/latex.mdx +2 -2
- package/.docs/raw/docs/guides/mentions.mdx +6 -6
- package/.docs/raw/docs/guides/message-timing.mdx +38 -5
- package/.docs/raw/docs/guides/quoting.mdx +1 -1
- package/.docs/raw/docs/guides/resumable-stream-deployment.mdx +212 -0
- package/.docs/raw/docs/guides/resumable-stream-stores.mdx +152 -0
- package/.docs/raw/docs/guides/resumable-streams.mdx +210 -0
- package/.docs/raw/docs/guides/slash-commands.mdx +2 -2
- package/.docs/raw/docs/guides/speech.mdx +2 -2
- package/.docs/raw/docs/guides/suggestions.mdx +89 -5
- package/.docs/raw/docs/guides/voice.mdx +2 -2
- package/.docs/raw/docs/ink/adapters.mdx +37 -1
- package/.docs/raw/docs/ink/custom-backend.mdx +59 -8
- package/.docs/raw/docs/ink/hooks.mdx +98 -85
- package/.docs/raw/docs/ink/index.mdx +10 -11
- package/.docs/raw/docs/ink/migration.mdx +1 -1
- package/.docs/raw/docs/ink/primitives.mdx +350 -9
- package/.docs/raw/docs/integrations/auth/better-auth.mdx +1 -1
- package/.docs/raw/docs/integrations/auth/clerk.mdx +1 -1
- package/.docs/raw/docs/integrations/auth/next-auth.mdx +1 -1
- package/.docs/raw/docs/integrations/frameworks/ai-sdk.mdx +3 -3
- package/.docs/raw/docs/integrations/frameworks/cloudflare-agents/overview.mdx +282 -0
- package/.docs/raw/docs/integrations/frameworks/mastra/overview.mdx +2 -2
- package/.docs/raw/docs/integrations/frameworks/mastra/separate-server.mdx +1 -1
- package/.docs/raw/docs/integrations/gateways/index.mdx +9 -4
- package/.docs/raw/docs/integrations/index.mdx +17 -5
- package/.docs/raw/docs/integrations/observability/langfuse.mdx +8 -1
- package/.docs/raw/docs/integrations/observability/langsmith.mdx +8 -4
- package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +17 -2
- package/.docs/raw/docs/migrations/toolkit-tools.mdx +226 -0
- package/.docs/raw/docs/primitives/chain-of-thought.mdx +10 -16
- package/.docs/raw/docs/primitives/composer.mdx +53 -0
- package/.docs/raw/docs/primitives/index.mdx +2 -2
- package/.docs/raw/docs/primitives/message.mdx +9 -10
- package/.docs/raw/docs/primitives/suggestion.mdx +9 -0
- package/.docs/raw/docs/react-native/hooks.mdx +57 -82
- package/.docs/raw/docs/react-native/index.mdx +4 -4
- package/.docs/raw/docs/react-native/migration.mdx +1 -1
- package/.docs/raw/docs/react-native/primitives.mdx +2 -2
- package/.docs/raw/docs/runtimes/a2a/client-and-hooks.mdx +7 -4
- package/.docs/raw/docs/runtimes/a2a/overview.mdx +2 -2
- package/.docs/raw/docs/runtimes/ag-ui/overview.mdx +2 -2
- package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +32 -1
- package/.docs/raw/docs/runtimes/ai-sdk/overview.mdx +2 -2
- package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +7 -2
- package/.docs/raw/docs/runtimes/ai-sdk/v5-legacy.mdx +1 -1
- package/.docs/raw/docs/runtimes/ai-sdk/v6.mdx +129 -1
- package/.docs/raw/docs/runtimes/concepts/threads.mdx +7 -1
- package/.docs/raw/docs/runtimes/custom/data-stream.mdx +27 -2
- package/.docs/raw/docs/runtimes/custom/external-store.mdx +9 -1
- package/.docs/raw/docs/runtimes/custom/local-runtime.mdx +18 -7
- package/.docs/raw/docs/runtimes/custom/overview.mdx +2 -2
- package/.docs/raw/docs/runtimes/google-adk/hooks.mdx +108 -38
- package/.docs/raw/docs/runtimes/google-adk/overview.mdx +2 -2
- package/.docs/raw/docs/runtimes/langchain.mdx +2 -2
- package/.docs/raw/docs/runtimes/langgraph/generative-ui.mdx +2 -2
- package/.docs/raw/docs/runtimes/langgraph/overview.mdx +2 -2
- package/.docs/raw/docs/runtimes/langgraph/streaming.mdx +1 -1
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-2.mdx +64 -50
- package/.docs/raw/docs/runtimes/langgraph/tutorial/part-3.mdx +98 -86
- package/.docs/raw/docs/runtimes/opencode/overview.mdx +2 -2
- package/.docs/raw/docs/runtimes/opencode/quickstart.mdx +1 -1
- package/.docs/raw/docs/runtimes/pick-a-runtime.mdx +12 -5
- package/.docs/raw/docs/tools/backend.mdx +136 -0
- package/.docs/raw/docs/tools/defining-tools.mdx +413 -0
- package/.docs/raw/docs/tools/dynamic-tools.mdx +110 -0
- package/.docs/raw/docs/tools/generative-ui.mdx +214 -0
- package/.docs/raw/docs/tools/index.mdx +76 -0
- package/.docs/raw/docs/{guides → tools}/interactables.mdx +3 -3
- package/.docs/raw/docs/tools/mcp-apps.mdx +231 -0
- package/.docs/raw/docs/{integrations/tools → tools}/mcp.mdx +77 -50
- package/.docs/raw/docs/{guides → tools}/multi-agent.mdx +19 -21
- package/.docs/raw/docs/tools/tool-ui.mdx +967 -0
- package/.docs/raw/docs/tools/user-managed-mcp.mdx +337 -0
- package/.docs/raw/docs/ui/composer-trigger-popover.mdx +11 -1
- package/.docs/raw/docs/ui/directive-text.mdx +3 -3
- package/.docs/raw/docs/ui/mcp-config.mdx +102 -0
- package/.docs/raw/docs/ui/model-selector.mdx +8 -8
- package/.docs/raw/docs/ui/part-grouping.mdx +84 -50
- package/.docs/raw/docs/ui/reasoning.mdx +4 -5
- package/.docs/raw/docs/ui/sources.mdx +17 -0
- package/.docs/raw/docs/ui/streamdown.mdx +34 -2
- package/.docs/raw/docs/ui/thread-list.mdx +2 -2
- package/.docs/raw/docs/ui/thread.mdx +2 -2
- package/.docs/raw/docs/ui/tool-group.mdx +5 -6
- package/.docs/raw/docs/utilities/heat-graph.mdx +1 -1
- package/README.md +14 -72
- package/dist/constants.d.ts +12 -9
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +13 -9
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -24
- package/dist/index.js.map +1 -1
- package/dist/prepare-docs/code-examples.d.ts +4 -1
- package/dist/prepare-docs/code-examples.d.ts.map +1 -1
- package/dist/prepare-docs/code-examples.js +109 -121
- package/dist/prepare-docs/code-examples.js.map +1 -1
- package/dist/prepare-docs/copy-raw.d.ts +4 -1
- package/dist/prepare-docs/copy-raw.d.ts.map +1 -1
- package/dist/prepare-docs/copy-raw.js +45 -42
- package/dist/prepare-docs/copy-raw.js.map +1 -1
- package/dist/prepare-docs/prepare.d.ts +1 -2
- package/dist/prepare-docs/prepare.js +17 -17
- package/dist/prepare-docs/prepare.js.map +1 -1
- package/dist/stdio.d.ts +1 -3
- package/dist/stdio.js +6 -3
- package/dist/stdio.js.map +1 -1
- package/dist/tools/docs.d.ts +20 -15
- package/dist/tools/docs.d.ts.map +1 -1
- package/dist/tools/docs.js +140 -161
- package/dist/tools/docs.js.map +1 -1
- package/dist/tools/examples.d.ts +20 -15
- package/dist/tools/examples.d.ts.map +1 -1
- package/dist/tools/examples.js +74 -86
- package/dist/tools/examples.js.map +1 -1
- package/dist/tools/tests/test-setup.d.ts +5 -2
- package/dist/tools/tests/test-setup.d.ts.map +1 -1
- package/dist/tools/tests/test-setup.js +21 -28
- package/dist/tools/tests/test-setup.js.map +1 -1
- package/dist/utils/logger.d.ts +8 -5
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +17 -17
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/mcp-format.d.ts +8 -5
- package/dist/utils/mcp-format.d.ts.map +1 -1
- package/dist/utils/mcp-format.js +9 -9
- package/dist/utils/mcp-format.js.map +1 -1
- package/dist/utils/mdx.d.ts +8 -6
- package/dist/utils/mdx.d.ts.map +1 -1
- package/dist/utils/mdx.js +22 -22
- package/dist/utils/mdx.js.map +1 -1
- package/dist/utils/paths.d.ts +9 -6
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +66 -76
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/security.d.ts +4 -1
- package/dist/utils/security.d.ts.map +1 -1
- package/dist/utils/security.js +19 -40
- package/dist/utils/security.js.map +1 -1
- package/package.json +5 -5
- package/.docs/organized/code-examples/with-parent-id-grouping.md +0 -596
- package/.docs/raw/docs/(docs)/copilots/make-assistant-tool-ui.mdx +0 -151
- package/.docs/raw/docs/(docs)/copilots/make-assistant-tool.mdx +0 -230
- package/.docs/raw/docs/(reference)/api-reference/adapters/feedback-speech.mdx +0 -41
- package/.docs/raw/docs/(reference)/api-reference/context-providers/text-message-part-provider.mdx +0 -40
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-data-stream.mdx +0 -260
- package/.docs/raw/docs/(reference)/api-reference/integrations/react-hook-form.mdx +0 -103
- package/.docs/raw/docs/(reference)/api-reference/integrations/vercel-ai-sdk.mdx +0 -254
- package/.docs/raw/docs/guides/tool-ui.mdx +0 -858
- package/.docs/raw/docs/guides/tools.mdx +0 -675
- package/dist/prepare-docs/prepare.d.ts.map +0 -1
- package/dist/stdio.d.ts.map +0 -1
- /package/.docs/raw/docs/{(reference)/migrations → migrations}/deprecation-policy.mdx +0 -0
- /package/.docs/raw/docs/{(reference) → migrations}/react-compatibility.mdx +0 -0
- /package/.docs/raw/docs/{(reference)/migrations → migrations}/react-langgraph-v0-7.mdx +0 -0
- /package/.docs/raw/docs/{(reference)/migrations → migrations}/v0-11.mdx +0 -0
- /package/.docs/raw/docs/{(reference)/migrations → migrations}/v0-12.mdx +0 -0
- /package/.docs/raw/docs/{(reference)/migrations → migrations}/v0-14.mdx +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: QueueItemPrimitive
|
|
3
|
+
description: Queue item primitives for rendering pending assistant-ui thread operations, optimistic work, and runtime queue state.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { QueueItemPrimitiveRemoveProps, QueueItemPrimitiveSteerProps, QueueItemPrimitiveTextProps } from "@/generated/typeDocs";
|
|
7
|
+
import { QueueItemPrimitive as QueueItemPrimitiveDocs } from "@/generated/primitiveDocs";
|
|
8
|
+
|
|
9
|
+
{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}
|
|
10
|
+
{/* Do not edit manually. */}
|
|
11
|
+
|
|
12
|
+
{/* api-reference:start */}
|
|
13
|
+
{/* AUTO-GENERATED by scripts/generate-api-reference.mts */}
|
|
14
|
+
{/* Do not edit this block manually. */}
|
|
15
|
+
|
|
16
|
+
## API Reference
|
|
17
|
+
|
|
18
|
+
### Text
|
|
19
|
+
|
|
20
|
+
{QueueItemPrimitiveDocs.Text?.deprecated && (
|
|
21
|
+
<Callout type="warn">
|
|
22
|
+
<strong>Deprecated.</strong> {QueueItemPrimitiveDocs.Text.deprecated}
|
|
23
|
+
</Callout>
|
|
24
|
+
)}
|
|
25
|
+
|
|
26
|
+
{QueueItemPrimitiveDocs.Text?.description}
|
|
27
|
+
|
|
28
|
+
{QueueItemPrimitiveDocs.Text?.element && (
|
|
29
|
+
<p>This primitive renders a <code>{`<${QueueItemPrimitiveDocs.Text?.element}>`}</code> element unless <code>asChild</code> is set.</p>
|
|
30
|
+
)}
|
|
31
|
+
|
|
32
|
+
<ParametersTable {...QueueItemPrimitiveTextProps} />
|
|
33
|
+
|
|
34
|
+
### Steer
|
|
35
|
+
|
|
36
|
+
{QueueItemPrimitiveDocs.Steer?.deprecated && (
|
|
37
|
+
<Callout type="warn">
|
|
38
|
+
<strong>Deprecated.</strong> {QueueItemPrimitiveDocs.Steer.deprecated}
|
|
39
|
+
</Callout>
|
|
40
|
+
)}
|
|
41
|
+
|
|
42
|
+
{QueueItemPrimitiveDocs.Steer?.description}
|
|
43
|
+
|
|
44
|
+
{QueueItemPrimitiveDocs.Steer?.element && (
|
|
45
|
+
<p>This primitive renders a <code>{`<${QueueItemPrimitiveDocs.Steer?.element}>`}</code> element unless <code>asChild</code> is set.</p>
|
|
46
|
+
)}
|
|
47
|
+
|
|
48
|
+
<ParametersTable {...QueueItemPrimitiveSteerProps} />
|
|
49
|
+
|
|
50
|
+
### Remove
|
|
51
|
+
|
|
52
|
+
{QueueItemPrimitiveDocs.Remove?.deprecated && (
|
|
53
|
+
<Callout type="warn">
|
|
54
|
+
<strong>Deprecated.</strong> {QueueItemPrimitiveDocs.Remove.deprecated}
|
|
55
|
+
</Callout>
|
|
56
|
+
)}
|
|
57
|
+
|
|
58
|
+
{QueueItemPrimitiveDocs.Remove?.description}
|
|
59
|
+
|
|
60
|
+
{QueueItemPrimitiveDocs.Remove?.element && (
|
|
61
|
+
<p>This primitive renders a <code>{`<${QueueItemPrimitiveDocs.Remove?.element}>`}</code> element unless <code>asChild</code> is set.</p>
|
|
62
|
+
)}
|
|
63
|
+
|
|
64
|
+
<ParametersTable {...QueueItemPrimitiveRemoveProps} />
|
|
65
|
+
{/* api-reference:end */}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: SelectionToolbarPrimitive
|
|
3
|
-
description:
|
|
3
|
+
description: Selection toolbar primitives for quote, copy, and contextual actions on selected chat text.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
import { SelectionToolbarPrimitiveQuoteProps, SelectionToolbarPrimitiveRootProps } from "@/generated/typeDocs";
|
|
7
|
+
import { SelectionToolbarPrimitive as SelectionToolbarPrimitiveDocs } from "@/generated/primitiveDocs";
|
|
7
8
|
|
|
9
|
+
{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}
|
|
10
|
+
{/* Do not edit manually. */}
|
|
11
|
+
|
|
12
|
+
For examples and usage patterns, see [SelectionToolbar](/docs/primitives/selection-toolbar).
|
|
13
|
+
|
|
14
|
+
{/* api-manual:start */}
|
|
8
15
|
## Anatomy
|
|
9
16
|
|
|
10
17
|
```tsx
|
|
@@ -25,37 +32,43 @@ Place this component inside `ThreadPrimitive.Root`:
|
|
|
25
32
|
<FloatingSelectionToolbar />
|
|
26
33
|
</ThreadPrimitive.Root>
|
|
27
34
|
```
|
|
35
|
+
{/* api-manual:end */}
|
|
36
|
+
|
|
37
|
+
{/* api-reference:start */}
|
|
38
|
+
{/* AUTO-GENERATED by scripts/generate-api-reference.mts */}
|
|
39
|
+
{/* Do not edit this block manually. */}
|
|
28
40
|
|
|
29
41
|
## API Reference
|
|
30
42
|
|
|
31
43
|
### Root
|
|
32
44
|
|
|
33
|
-
|
|
45
|
+
{SelectionToolbarPrimitiveDocs.Root?.deprecated && (
|
|
46
|
+
<Callout type="warn">
|
|
47
|
+
<strong>Deprecated.</strong> {SelectionToolbarPrimitiveDocs.Root.deprecated}
|
|
48
|
+
</Callout>
|
|
49
|
+
)}
|
|
34
50
|
|
|
35
|
-
|
|
51
|
+
{SelectionToolbarPrimitiveDocs.Root?.description}
|
|
36
52
|
|
|
37
|
-
|
|
53
|
+
{SelectionToolbarPrimitiveDocs.Root?.element && (
|
|
54
|
+
<p>This primitive renders a <code>{`<${SelectionToolbarPrimitiveDocs.Root?.element}>`}</code> element unless <code>asChild</code> is set.</p>
|
|
55
|
+
)}
|
|
38
56
|
|
|
39
|
-
|
|
40
|
-
- Validates the selection is within a single message using `data-message-id` attributes
|
|
41
|
-
- Renders a portal with `position: fixed`, centered above the selection
|
|
42
|
-
- Prevents `mousedown` from clearing the text selection when clicking the toolbar
|
|
43
|
-
- Hides automatically on scroll or when the selection is cleared
|
|
44
|
-
- Cross-message selections are ignored
|
|
57
|
+
<ParametersTable {...SelectionToolbarPrimitiveRootProps} />
|
|
45
58
|
|
|
46
59
|
### Quote
|
|
47
60
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
61
|
+
{SelectionToolbarPrimitiveDocs.Quote?.deprecated && (
|
|
62
|
+
<Callout type="warn">
|
|
63
|
+
<strong>Deprecated.</strong> {SelectionToolbarPrimitiveDocs.Quote.deprecated}
|
|
64
|
+
</Callout>
|
|
65
|
+
)}
|
|
51
66
|
|
|
52
|
-
|
|
67
|
+
{SelectionToolbarPrimitiveDocs.Quote?.description}
|
|
53
68
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
- Disabled when no selection info is available
|
|
69
|
+
{SelectionToolbarPrimitiveDocs.Quote?.element && (
|
|
70
|
+
<p>This primitive renders a <code>{`<${SelectionToolbarPrimitiveDocs.Quote?.element}>`}</code> element unless <code>asChild</code> is set.</p>
|
|
71
|
+
)}
|
|
58
72
|
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
</Callout>
|
|
73
|
+
<ParametersTable {...SelectionToolbarPrimitiveQuoteProps} />
|
|
74
|
+
{/* api-reference:end */}
|
|
@@ -1,150 +1,67 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: SuggestionPrimitive
|
|
3
|
+
description: Suggestion primitives for rendering starter prompts, follow-up actions, and composer suggestions in assistant-ui threads.
|
|
3
4
|
---
|
|
4
5
|
|
|
6
|
+
import { SuggestionPrimitiveDescriptionProps, SuggestionPrimitiveTitleProps, SuggestionPrimitiveTriggerProps } from "@/generated/typeDocs";
|
|
7
|
+
import { SuggestionPrimitive as SuggestionPrimitiveDocs } from "@/generated/primitiveDocs";
|
|
5
8
|
|
|
6
|
-
|
|
9
|
+
{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}
|
|
10
|
+
{/* Do not edit manually. */}
|
|
7
11
|
|
|
8
|
-
|
|
12
|
+
For examples and usage patterns, see [Suggestion](/docs/primitives/suggestion).
|
|
9
13
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<SuggestionPrimitive.Title />
|
|
14
|
-
<SuggestionPrimitive.Description />
|
|
15
|
-
<SuggestionPrimitive.Trigger />
|
|
16
|
-
```
|
|
14
|
+
{/* api-reference:start */}
|
|
15
|
+
{/* AUTO-GENERATED by scripts/generate-api-reference.mts */}
|
|
16
|
+
{/* Do not edit this block manually. */}
|
|
17
17
|
|
|
18
18
|
## API Reference
|
|
19
19
|
|
|
20
|
-
###
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
return (
|
|
69
|
-
<SuggestionPrimitive.Trigger send asChild>
|
|
70
|
-
<button>
|
|
71
|
-
<SuggestionPrimitive.Title />
|
|
72
|
-
</button>
|
|
73
|
-
</SuggestionPrimitive.Trigger>
|
|
74
|
-
);
|
|
75
|
-
};
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
<ParametersTable
|
|
79
|
-
type="SuggestionPrimitiveTriggerProps"
|
|
80
|
-
parameters={[
|
|
81
|
-
{
|
|
82
|
-
name: "send",
|
|
83
|
-
type: "boolean",
|
|
84
|
-
description:
|
|
85
|
-
"When true, automatically sends the message. When false, only populates the composer with the suggestion's prompt.",
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
name: "clearComposer",
|
|
89
|
-
type: "boolean",
|
|
90
|
-
default: "true",
|
|
91
|
-
description:
|
|
92
|
-
"When send is false, determines whether to clear the composer before adding the suggestion (true) or append to existing text (false).",
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
name: "asChild",
|
|
96
|
-
type: "boolean",
|
|
97
|
-
default: "false",
|
|
98
|
-
description: "Merge props with child element instead of rendering a wrapper button.",
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
name: "className",
|
|
102
|
-
type: "string",
|
|
103
|
-
description: "CSS class name.",
|
|
104
|
-
},
|
|
105
|
-
]}
|
|
106
|
-
/>
|
|
107
|
-
|
|
108
|
-
This primitive renders a `<button>` element unless `asChild` is set.
|
|
109
|
-
|
|
110
|
-
## Usage Example
|
|
111
|
-
|
|
112
|
-
```tsx
|
|
113
|
-
import {
|
|
114
|
-
ThreadPrimitive,
|
|
115
|
-
SuggestionPrimitive,
|
|
116
|
-
} from "@assistant-ui/react";
|
|
117
|
-
|
|
118
|
-
const ThreadWelcome = () => {
|
|
119
|
-
return (
|
|
120
|
-
<div>
|
|
121
|
-
<h1>How can I help you?</h1>
|
|
122
|
-
<div className="grid grid-cols-2 gap-2">
|
|
123
|
-
<ThreadPrimitive.Suggestions>
|
|
124
|
-
{() => <SuggestionCard />}
|
|
125
|
-
</ThreadPrimitive.Suggestions>
|
|
126
|
-
</div>
|
|
127
|
-
</div>
|
|
128
|
-
);
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
const SuggestionCard = () => {
|
|
132
|
-
return (
|
|
133
|
-
<SuggestionPrimitive.Trigger send asChild>
|
|
134
|
-
<button className="flex flex-col gap-1 rounded-lg border p-3 hover:bg-muted">
|
|
135
|
-
<span className="font-medium">
|
|
136
|
-
<SuggestionPrimitive.Title />
|
|
137
|
-
</span>
|
|
138
|
-
<span className="text-muted-foreground text-sm">
|
|
139
|
-
<SuggestionPrimitive.Description />
|
|
140
|
-
</span>
|
|
141
|
-
</button>
|
|
142
|
-
</SuggestionPrimitive.Trigger>
|
|
143
|
-
);
|
|
144
|
-
};
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
## See Also
|
|
148
|
-
|
|
149
|
-
- [Suggestions Guide](/docs/guides/suggestions) - Configure and customize suggestions
|
|
150
|
-
- [ThreadPrimitive.Suggestions](/docs/api-reference/primitives/thread#threadprimitive-suggestions) - Render all suggestions
|
|
20
|
+
### Title
|
|
21
|
+
|
|
22
|
+
{SuggestionPrimitiveDocs.Title?.deprecated && (
|
|
23
|
+
<Callout type="warn">
|
|
24
|
+
<strong>Deprecated.</strong> {SuggestionPrimitiveDocs.Title.deprecated}
|
|
25
|
+
</Callout>
|
|
26
|
+
)}
|
|
27
|
+
|
|
28
|
+
{SuggestionPrimitiveDocs.Title?.description}
|
|
29
|
+
|
|
30
|
+
{SuggestionPrimitiveDocs.Title?.element && (
|
|
31
|
+
<p>This primitive renders a <code>{`<${SuggestionPrimitiveDocs.Title?.element}>`}</code> element unless <code>asChild</code> is set.</p>
|
|
32
|
+
)}
|
|
33
|
+
|
|
34
|
+
<ParametersTable {...SuggestionPrimitiveTitleProps} />
|
|
35
|
+
|
|
36
|
+
### Description
|
|
37
|
+
|
|
38
|
+
{SuggestionPrimitiveDocs.Description?.deprecated && (
|
|
39
|
+
<Callout type="warn">
|
|
40
|
+
<strong>Deprecated.</strong> {SuggestionPrimitiveDocs.Description.deprecated}
|
|
41
|
+
</Callout>
|
|
42
|
+
)}
|
|
43
|
+
|
|
44
|
+
{SuggestionPrimitiveDocs.Description?.description}
|
|
45
|
+
|
|
46
|
+
{SuggestionPrimitiveDocs.Description?.element && (
|
|
47
|
+
<p>This primitive renders a <code>{`<${SuggestionPrimitiveDocs.Description?.element}>`}</code> element unless <code>asChild</code> is set.</p>
|
|
48
|
+
)}
|
|
49
|
+
|
|
50
|
+
<ParametersTable {...SuggestionPrimitiveDescriptionProps} />
|
|
51
|
+
|
|
52
|
+
### Trigger
|
|
53
|
+
|
|
54
|
+
{SuggestionPrimitiveDocs.Trigger?.deprecated && (
|
|
55
|
+
<Callout type="warn">
|
|
56
|
+
<strong>Deprecated.</strong> {SuggestionPrimitiveDocs.Trigger.deprecated}
|
|
57
|
+
</Callout>
|
|
58
|
+
)}
|
|
59
|
+
|
|
60
|
+
{SuggestionPrimitiveDocs.Trigger?.description}
|
|
61
|
+
|
|
62
|
+
{SuggestionPrimitiveDocs.Trigger?.element && (
|
|
63
|
+
<p>This primitive renders a <code>{`<${SuggestionPrimitiveDocs.Trigger?.element}>`}</code> element unless <code>asChild</code> is set.</p>
|
|
64
|
+
)}
|
|
65
|
+
|
|
66
|
+
<ParametersTable {...SuggestionPrimitiveTriggerProps} />
|
|
67
|
+
{/* api-reference:end */}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: ThreadListItemMorePrimitive
|
|
3
|
-
description:
|
|
3
|
+
description: Overflow menu primitives for secondary thread list item actions in custom assistant-ui sidebars.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
import { ThreadListItemMorePrimitiveContentProps, ThreadListItemMorePrimitiveItemProps, ThreadListItemMorePrimitiveRootProps, ThreadListItemMorePrimitiveSeparatorProps, ThreadListItemMorePrimitiveTriggerProps } from "@/generated/typeDocs";
|
|
7
|
+
import { ThreadListItemMorePrimitive as ThreadListItemMorePrimitiveDocs } from "@/generated/primitiveDocs";
|
|
7
8
|
|
|
9
|
+
{/* AUTO-GENERATED PAGE by scripts/generate-api-reference.mts */}
|
|
10
|
+
{/* Do not edit manually. */}
|
|
8
11
|
|
|
12
|
+
{/* api-manual:start */}
|
|
9
13
|
## Anatomy
|
|
10
14
|
|
|
11
15
|
```tsx
|
|
@@ -35,186 +39,91 @@ const ThreadListItemMore = () => (
|
|
|
35
39
|
</ThreadListItemMorePrimitive.Root>
|
|
36
40
|
);
|
|
37
41
|
```
|
|
42
|
+
{/* api-manual:end */}
|
|
43
|
+
|
|
44
|
+
{/* api-reference:start */}
|
|
45
|
+
{/* AUTO-GENERATED by scripts/generate-api-reference.mts */}
|
|
46
|
+
{/* Do not edit this block manually. */}
|
|
38
47
|
|
|
39
48
|
## API Reference
|
|
40
49
|
|
|
41
50
|
### Root
|
|
42
51
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
description: "The open state of the dropdown menu when it is initially rendered.",
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: "onOpenChange",
|
|
60
|
-
type: "(open: boolean) => void",
|
|
61
|
-
description: "Event handler called when the open state changes.",
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: "modal",
|
|
65
|
-
type: "boolean",
|
|
66
|
-
default: "true",
|
|
67
|
-
description: "Whether the dropdown menu should be modal.",
|
|
68
|
-
},
|
|
69
|
-
]}
|
|
70
|
-
/>
|
|
52
|
+
{ThreadListItemMorePrimitiveDocs.Root?.deprecated && (
|
|
53
|
+
<Callout type="warn">
|
|
54
|
+
<strong>Deprecated.</strong> {ThreadListItemMorePrimitiveDocs.Root.deprecated}
|
|
55
|
+
</Callout>
|
|
56
|
+
)}
|
|
57
|
+
|
|
58
|
+
{ThreadListItemMorePrimitiveDocs.Root?.description}
|
|
59
|
+
|
|
60
|
+
{ThreadListItemMorePrimitiveDocs.Root?.element && (
|
|
61
|
+
<p>This primitive renders a <code>{`<${ThreadListItemMorePrimitiveDocs.Root?.element}>`}</code> element unless <code>asChild</code> is set.</p>
|
|
62
|
+
)}
|
|
63
|
+
|
|
64
|
+
<ParametersTable {...ThreadListItemMorePrimitiveRootProps} />
|
|
71
65
|
|
|
72
66
|
### Trigger
|
|
73
67
|
|
|
74
|
-
|
|
68
|
+
{ThreadListItemMorePrimitiveDocs.Trigger?.deprecated && (
|
|
69
|
+
<Callout type="warn">
|
|
70
|
+
<strong>Deprecated.</strong> {ThreadListItemMorePrimitiveDocs.Trigger.deprecated}
|
|
71
|
+
</Callout>
|
|
72
|
+
)}
|
|
75
73
|
|
|
76
|
-
|
|
74
|
+
{ThreadListItemMorePrimitiveDocs.Trigger?.description}
|
|
77
75
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
]}
|
|
85
|
-
/>
|
|
76
|
+
{ThreadListItemMorePrimitiveDocs.Trigger?.element && (
|
|
77
|
+
<p>This primitive renders a <code>{`<${ThreadListItemMorePrimitiveDocs.Trigger?.element}>`}</code> element unless <code>asChild</code> is set.</p>
|
|
78
|
+
)}
|
|
79
|
+
|
|
80
|
+
<ParametersTable {...ThreadListItemMorePrimitiveTriggerProps} />
|
|
86
81
|
|
|
87
82
|
### Content
|
|
88
83
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
<
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
{
|
|
95
|
-
name: "side",
|
|
96
|
-
type: '"top" | "right" | "bottom" | "left"',
|
|
97
|
-
default: '"bottom"',
|
|
98
|
-
description: "The preferred side of the trigger to render against.",
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
name: "sideOffset",
|
|
102
|
-
type: "number",
|
|
103
|
-
default: "4",
|
|
104
|
-
description: "The distance in pixels from the trigger.",
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
name: "align",
|
|
108
|
-
type: '"start" | "center" | "end"',
|
|
109
|
-
default: '"center"',
|
|
110
|
-
description: "The preferred alignment against the trigger.",
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
name: "alignOffset",
|
|
114
|
-
type: "number",
|
|
115
|
-
default: "0",
|
|
116
|
-
description: "An offset in pixels from the align option.",
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: "portalProps",
|
|
120
|
-
type: "PortalProps",
|
|
121
|
-
description: "Props to pass to the Portal component.",
|
|
122
|
-
},
|
|
123
|
-
]}
|
|
124
|
-
/>
|
|
84
|
+
{ThreadListItemMorePrimitiveDocs.Content?.deprecated && (
|
|
85
|
+
<Callout type="warn">
|
|
86
|
+
<strong>Deprecated.</strong> {ThreadListItemMorePrimitiveDocs.Content.deprecated}
|
|
87
|
+
</Callout>
|
|
88
|
+
)}
|
|
125
89
|
|
|
126
|
-
|
|
90
|
+
{ThreadListItemMorePrimitiveDocs.Content?.description}
|
|
127
91
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
<ParametersTable
|
|
133
|
-
type="ThreadListItemMorePrimitiveItemProps"
|
|
134
|
-
parameters={[
|
|
135
|
-
{
|
|
136
|
-
name: "asChild",
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
name: "disabled",
|
|
140
|
-
type: "boolean",
|
|
141
|
-
description: "Whether the item is disabled.",
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
name: "onSelect",
|
|
145
|
-
type: "(event: Event) => void",
|
|
146
|
-
description: "Event handler called when the user selects an item.",
|
|
147
|
-
},
|
|
148
|
-
]}
|
|
149
|
-
/>
|
|
92
|
+
{ThreadListItemMorePrimitiveDocs.Content?.element && (
|
|
93
|
+
<p>This primitive renders a <code>{`<${ThreadListItemMorePrimitiveDocs.Content?.element}>`}</code> element unless <code>asChild</code> is set.</p>
|
|
94
|
+
)}
|
|
150
95
|
|
|
151
|
-
|
|
96
|
+
<ParametersTable {...ThreadListItemMorePrimitiveContentProps} />
|
|
152
97
|
|
|
153
|
-
|
|
98
|
+
### Item
|
|
154
99
|
|
|
155
|
-
|
|
156
|
-
type="
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
},
|
|
161
|
-
]}
|
|
162
|
-
/>
|
|
100
|
+
{ThreadListItemMorePrimitiveDocs.Item?.deprecated && (
|
|
101
|
+
<Callout type="warn">
|
|
102
|
+
<strong>Deprecated.</strong> {ThreadListItemMorePrimitiveDocs.Item.deprecated}
|
|
103
|
+
</Callout>
|
|
104
|
+
)}
|
|
163
105
|
|
|
164
|
-
|
|
106
|
+
{ThreadListItemMorePrimitiveDocs.Item?.description}
|
|
165
107
|
|
|
166
|
-
|
|
108
|
+
{ThreadListItemMorePrimitiveDocs.Item?.element && (
|
|
109
|
+
<p>This primitive renders a <code>{`<${ThreadListItemMorePrimitiveDocs.Item?.element}>`}</code> element unless <code>asChild</code> is set.</p>
|
|
110
|
+
)}
|
|
167
111
|
|
|
168
|
-
|
|
169
|
-
import { ArchiveIcon, TrashIcon, MoreHorizontalIcon } from "lucide-react";
|
|
112
|
+
<ParametersTable {...ThreadListItemMorePrimitiveItemProps} />
|
|
170
113
|
|
|
171
|
-
|
|
172
|
-
<ThreadListItemMorePrimitive.Root>
|
|
173
|
-
<ThreadListItemMorePrimitive.Trigger asChild>
|
|
174
|
-
<button className="icon-button">
|
|
175
|
-
<MoreHorizontalIcon />
|
|
176
|
-
</button>
|
|
177
|
-
</ThreadListItemMorePrimitive.Trigger>
|
|
178
|
-
<ThreadListItemMorePrimitive.Content
|
|
179
|
-
side="bottom"
|
|
180
|
-
align="start"
|
|
181
|
-
className="dropdown-content"
|
|
182
|
-
>
|
|
183
|
-
<ThreadListItemPrimitive.Archive asChild>
|
|
184
|
-
<ThreadListItemMorePrimitive.Item className="dropdown-item">
|
|
185
|
-
<ArchiveIcon className="icon" />
|
|
186
|
-
Archive
|
|
187
|
-
</ThreadListItemMorePrimitive.Item>
|
|
188
|
-
</ThreadListItemPrimitive.Archive>
|
|
189
|
-
</ThreadListItemMorePrimitive.Content>
|
|
190
|
-
</ThreadListItemMorePrimitive.Root>
|
|
191
|
-
);
|
|
192
|
-
```
|
|
114
|
+
### Separator
|
|
193
115
|
|
|
194
|
-
|
|
116
|
+
{ThreadListItemMorePrimitiveDocs.Separator?.deprecated && (
|
|
117
|
+
<Callout type="warn">
|
|
118
|
+
<strong>Deprecated.</strong> {ThreadListItemMorePrimitiveDocs.Separator.deprecated}
|
|
119
|
+
</Callout>
|
|
120
|
+
)}
|
|
195
121
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
<ThreadListItemMorePrimitive.Trigger asChild>
|
|
205
|
-
<button className="more-button">
|
|
206
|
-
<MoreHorizontalIcon />
|
|
207
|
-
</button>
|
|
208
|
-
</ThreadListItemMorePrimitive.Trigger>
|
|
209
|
-
<ThreadListItemMorePrimitive.Content>
|
|
210
|
-
<ThreadListItemPrimitive.Archive asChild>
|
|
211
|
-
<ThreadListItemMorePrimitive.Item>
|
|
212
|
-
<ArchiveIcon />
|
|
213
|
-
Archive
|
|
214
|
-
</ThreadListItemMorePrimitive.Item>
|
|
215
|
-
</ThreadListItemPrimitive.Archive>
|
|
216
|
-
</ThreadListItemMorePrimitive.Content>
|
|
217
|
-
</ThreadListItemMorePrimitive.Root>
|
|
218
|
-
</ThreadListItemPrimitive.Root>
|
|
219
|
-
);
|
|
220
|
-
```
|
|
122
|
+
{ThreadListItemMorePrimitiveDocs.Separator?.description}
|
|
123
|
+
|
|
124
|
+
{ThreadListItemMorePrimitiveDocs.Separator?.element && (
|
|
125
|
+
<p>This primitive renders a <code>{`<${ThreadListItemMorePrimitiveDocs.Separator?.element}>`}</code> element unless <code>asChild</code> is set.</p>
|
|
126
|
+
)}
|
|
127
|
+
|
|
128
|
+
<ParametersTable {...ThreadListItemMorePrimitiveSeparatorProps} />
|
|
129
|
+
{/* api-reference:end */}
|