@assistant-ui/mcp-docs-server 0.2.1 → 0.2.3
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 +3 -3
- package/.docs/organized/code-examples/with-a2a.md +5 -4
- package/.docs/organized/code-examples/with-ag-ui.md +7 -6
- package/.docs/organized/code-examples/with-ai-sdk-v7.md +14 -13
- package/.docs/organized/code-examples/with-artifacts.md +12 -11
- package/.docs/organized/code-examples/with-assistant-transport.md +6 -5
- package/.docs/organized/code-examples/with-browser-extension.md +6 -6
- package/.docs/organized/code-examples/with-chain-of-thought.md +16 -14
- package/.docs/organized/code-examples/with-cloud-standalone.md +7 -7
- package/.docs/organized/code-examples/with-cloud.md +11 -10
- package/.docs/organized/code-examples/with-custom-thread-list.md +11 -10
- package/.docs/organized/code-examples/with-elevenlabs-conversational.md +14 -13
- package/.docs/organized/code-examples/with-elevenlabs-scribe.md +15 -14
- package/.docs/organized/code-examples/with-eve.md +6 -5
- package/.docs/organized/code-examples/with-expo.md +213 -36
- package/.docs/organized/code-examples/with-external-store.md +6 -5
- package/.docs/organized/code-examples/with-ffmpeg.md +11 -10
- package/.docs/organized/code-examples/with-generative-ui.md +263 -29
- package/.docs/organized/code-examples/with-google-adk.md +5 -4
- package/.docs/organized/code-examples/with-heat-graph.md +3 -3
- package/.docs/organized/code-examples/with-image-generation.md +8 -7
- package/.docs/organized/code-examples/with-interactables.md +11 -10
- package/.docs/organized/code-examples/with-langchain.md +10 -9
- package/.docs/organized/code-examples/with-langgraph.md +7 -6
- package/.docs/organized/code-examples/with-livekit.md +15 -14
- package/.docs/organized/code-examples/with-mcp.md +14 -12
- package/.docs/organized/code-examples/with-nuxt.md +511 -575
- package/.docs/organized/code-examples/with-opencode.md +4 -4
- package/.docs/organized/code-examples/with-openui.md +450 -0
- package/.docs/organized/code-examples/with-pi.md +6 -5
- package/.docs/organized/code-examples/with-react-hook-form.md +16 -13
- package/.docs/organized/code-examples/with-react-ink-web.md +65 -15
- package/.docs/organized/code-examples/with-react-ink.md +5 -4
- package/.docs/organized/code-examples/with-react-router.md +8 -7
- package/.docs/organized/code-examples/with-resumable-stream.md +13 -12
- package/.docs/organized/code-examples/with-store.md +3 -3
- package/.docs/organized/code-examples/with-svelte.md +415 -0
- package/.docs/organized/code-examples/with-sveltekit.md +1061 -0
- package/.docs/organized/code-examples/with-tanstack.md +10 -9
- package/.docs/organized/code-examples/with-tap-runtime.md +5 -4
- package/.docs/organized/code-examples/with-virtualized-thread.md +6 -5
- package/.docs/organized/code-examples/with-vue.md +2 -2
- package/.docs/raw/docs/{(docs) → (getting-started)}/cli.mdx +6 -1
- package/.docs/raw/docs/{(docs) → (getting-started)}/devtools.mdx +1 -1
- package/.docs/raw/docs/{(docs) → (getting-started)}/index.mdx +4 -2
- package/.docs/raw/docs/{(docs) → (getting-started)}/installation.mdx +26 -26
- package/.docs/raw/docs/(reference)/api-reference/adapters/suggestions.mdx +6 -0
- package/.docs/raw/docs/(reference)/api-reference/context-providers/assistant-runtime-provider.mdx +1 -1
- package/.docs/raw/docs/(reference)/api-reference/external-store/message-conversion.mdx +6 -1
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/slack.mdx +5 -1
- package/.docs/raw/docs/(reference)/api-reference/generative-ui/teams.mdx +9 -2
- package/.docs/raw/docs/(reference)/api-reference/hooks/primitives.mdx +2 -2
- package/.docs/raw/docs/(reference)/api-reference/integrations/{react-ai-sdk.mdx → ai-sdk.mdx} +43 -18
- package/.docs/raw/docs/(reference)/api-reference/integrations/eve.mdx +61 -2
- package/.docs/raw/docs/(reference)/api-reference/integrations/index.mdx +3 -3
- package/.docs/raw/docs/(reference)/api-reference/overview.mdx +2 -2
- package/.docs/raw/docs/(reference)/api-reference/primitives/composer.mdx +20 -2
- package/.docs/raw/docs/(reference)/api-reference/tools/interactables.mdx +1 -1
- package/.docs/raw/docs/(reference)/api-reference/tools/status.mdx +1 -1
- package/.docs/raw/docs/(reference)/api-reference/transport/frame.mdx +1 -1
- package/.docs/raw/docs/(reference)/api-reference/utilities/miscellaneous.mdx +32 -1
- package/.docs/raw/docs/(reference)/api-reference/voice/session.mdx +1 -1
- package/.docs/raw/docs/cloud/ai-sdk-assistant-ui.mdx +10 -10
- package/.docs/raw/docs/cloud/ai-sdk.mdx +4 -2
- package/.docs/raw/docs/cloud/index.mdx +1 -1
- package/.docs/raw/docs/copilots/assistant-frame.mdx +19 -8
- package/.docs/raw/docs/guides/attachments.mdx +4 -4
- package/.docs/raw/docs/guides/branching.mdx +1 -1
- package/.docs/raw/docs/guides/chatgpt-subscription.mdx +1 -1
- package/.docs/raw/docs/guides/context-api.mdx +15 -17
- package/.docs/raw/docs/guides/dictation.mdx +2 -2
- package/.docs/raw/docs/guides/electron.mdx +1 -1
- package/.docs/raw/docs/guides/latex.mdx +1 -1
- package/.docs/raw/docs/guides/mentions.mdx +2 -0
- package/.docs/raw/docs/guides/message-timing.mdx +11 -5
- package/.docs/raw/docs/guides/quoting.mdx +1 -1
- package/.docs/raw/docs/guides/resumable-streams.mdx +3 -3
- package/.docs/raw/docs/guides/speech.mdx +1 -1
- package/.docs/raw/docs/guides/suggestions.mdx +8 -5
- package/.docs/raw/docs/guides/voice.mdx +1 -1
- package/.docs/raw/docs/ink/hooks.mdx +1 -1
- package/.docs/raw/docs/ink/index.mdx +3 -2
- package/.docs/raw/docs/ink/migration.mdx +1 -1
- package/.docs/raw/docs/ink/primitives.mdx +1 -1
- package/.docs/raw/docs/integrations/attachments/custom-adapter.mdx +3 -3
- package/.docs/raw/docs/integrations/frameworks/ai-sdk.mdx +3 -3
- package/.docs/raw/docs/integrations/frameworks/{cloudflare-agents/overview.mdx → cloudflare-agents.mdx} +4 -3
- package/.docs/raw/docs/integrations/frameworks/mastra/overview.mdx +1 -1
- package/.docs/raw/docs/integrations/frameworks/mastra/separate-server.mdx +1 -1
- package/.docs/raw/docs/integrations/index.mdx +2 -2
- package/.docs/raw/docs/integrations/persistence/custom-adapter.mdx +149 -131
- package/.docs/raw/docs/migrations/toolkit-tools.mdx +2 -2
- package/.docs/raw/docs/migrations/v0-15.mdx +34 -0
- package/.docs/raw/docs/primitives/action-bar.mdx +1 -1
- package/.docs/raw/docs/primitives/assistant-modal.mdx +1 -1
- package/.docs/raw/docs/primitives/attachment.mdx +1 -1
- package/.docs/raw/docs/primitives/branch-picker.mdx +1 -1
- package/.docs/raw/docs/primitives/chain-of-thought.mdx +3 -3
- package/.docs/raw/docs/primitives/composer.mdx +1 -1
- package/.docs/raw/docs/primitives/error.mdx +1 -1
- package/.docs/raw/docs/primitives/message.mdx +1 -1
- package/.docs/raw/docs/primitives/selection-toolbar.mdx +1 -1
- package/.docs/raw/docs/primitives/suggestion.mdx +4 -2
- package/.docs/raw/docs/primitives/thread-list.mdx +1 -1
- package/.docs/raw/docs/primitives/thread.mdx +2 -2
- package/.docs/raw/docs/react-native/adapters.mdx +1 -1
- package/.docs/raw/docs/react-native/index.mdx +2 -2
- package/.docs/raw/docs/react-native/migration.mdx +2 -2
- package/.docs/raw/docs/react-native/primitives.mdx +142 -5
- package/.docs/raw/docs/runtimes/ag-ui/runtime-options.mdx +48 -6
- package/.docs/raw/docs/runtimes/ai-sdk/overview.mdx +3 -3
- package/.docs/raw/docs/runtimes/ai-sdk/v4-legacy.mdx +4 -4
- package/.docs/raw/docs/runtimes/ai-sdk/v7.mdx +31 -16
- package/.docs/raw/docs/runtimes/claude-managed-agents.mdx +118 -0
- package/.docs/raw/docs/runtimes/concepts/adapters.mdx +3 -3
- package/.docs/raw/docs/runtimes/concepts/architecture.mdx +3 -3
- package/.docs/raw/docs/runtimes/concepts/stability.mdx +2 -1
- package/.docs/raw/docs/runtimes/concepts/threads.mdx +73 -33
- package/.docs/raw/docs/runtimes/custom/assistant-transport.mdx +1 -1
- package/.docs/raw/docs/runtimes/custom/external-store.mdx +6 -2
- package/.docs/raw/docs/runtimes/langchain.mdx +2 -2
- package/.docs/raw/docs/runtimes/langgraph/streaming.mdx +4 -0
- package/.docs/raw/docs/runtimes/opencode/quickstart.mdx +1 -1
- package/.docs/raw/docs/runtimes/pick-a-runtime.mdx +9 -2
- package/.docs/raw/docs/tools/backend.mdx +4 -4
- package/.docs/raw/docs/tools/defining-tools.mdx +21 -2
- package/.docs/raw/docs/tools/generative-ui-primitive.mdx +180 -0
- package/.docs/raw/docs/tools/generative-ui-slack.mdx +167 -0
- package/.docs/raw/docs/tools/generative-ui-teams.mdx +160 -0
- package/.docs/raw/docs/tools/generative-ui.mdx +224 -211
- package/.docs/raw/docs/tools/index.mdx +2 -1
- package/.docs/raw/docs/tools/interactables.mdx +8 -7
- package/.docs/raw/docs/tools/mcp-apps.mdx +18 -1
- package/.docs/raw/docs/tools/mcp.mdx +2 -2
- package/.docs/raw/docs/tools/openui.mdx +175 -0
- package/.docs/raw/docs/tools/tool-ui.mdx +18 -7
- package/.docs/raw/docs/tools/user-managed-mcp.mdx +7 -3
- package/.docs/raw/docs/ui/assistant-modal.mdx +3 -3
- package/.docs/raw/docs/ui/assistant-sidebar.mdx +1 -1
- package/.docs/raw/docs/ui/attachment.mdx +50 -3
- package/.docs/raw/docs/ui/composer-trigger-popover.mdx +36 -1
- package/.docs/raw/docs/ui/context-display.mdx +1 -1
- package/.docs/raw/docs/ui/directive-text.mdx +1 -1
- package/.docs/raw/docs/ui/file.mdx +2 -2
- package/.docs/raw/docs/ui/follow-up-suggestions.mdx +1 -1
- package/.docs/raw/docs/ui/image.mdx +2 -2
- package/.docs/raw/docs/ui/markdown.mdx +40 -1
- package/.docs/raw/docs/ui/mermaid.mdx +1 -1
- package/.docs/raw/docs/ui/message-timing.mdx +1 -1
- package/.docs/raw/docs/ui/model-selector.mdx +4 -4
- package/.docs/raw/docs/ui/part-grouping.mdx +1 -1
- package/.docs/raw/docs/ui/quote.mdx +3 -3
- package/.docs/raw/docs/ui/reasoning.mdx +31 -3
- package/.docs/raw/docs/ui/scrollbar.mdx +1 -1
- package/.docs/raw/docs/ui/sources.mdx +10 -1
- package/.docs/raw/docs/ui/streamdown.mdx +2 -2
- package/.docs/raw/docs/ui/syntax-highlighting.mdx +1 -1
- package/.docs/raw/docs/ui/thread-list.mdx +40 -1
- package/.docs/raw/docs/ui/thread.mdx +49 -2
- package/.docs/raw/docs/ui/tool-fallback.mdx +23 -9
- package/.docs/raw/docs/ui/tool-group.mdx +1 -1
- package/.docs/raw/docs/ui/voice.mdx +1 -1
- package/.docs/raw/docs/utilities/react-o11y.mdx +2 -2
- package/dist/xulux/catalog-client.d.ts.map +1 -1
- package/dist/xulux/catalog-client.js +51 -6
- package/dist/xulux/catalog-client.js.map +1 -1
- package/dist/xulux/types.d.ts +7 -7
- package/dist/xulux/types.d.ts.map +1 -1
- package/dist/xulux/types.js.map +1 -1
- package/package.json +5 -5
- package/src/tools/tests/docs.test.ts +10 -7
- package/src/tools/tests/path-traversal.test.ts +5 -2
- package/src/tools/tests/xulux-templates.test.ts +63 -0
- package/src/xulux/catalog-client.ts +68 -23
- package/src/xulux/types.ts +17 -13
- package/.docs/raw/docs/tools/interactables-legacy.mdx +0 -423
- package/.docs/raw/docs/ui/accordion.mdx +0 -266
- package/.docs/raw/docs/ui/badge.mdx +0 -150
- package/.docs/raw/docs/ui/diff-viewer.mdx +0 -280
- package/.docs/raw/docs/ui/dot-matrix.mdx +0 -133
- package/.docs/raw/docs/ui/number-roll.mdx +0 -154
- package/.docs/raw/docs/ui/select.mdx +0 -254
- package/.docs/raw/docs/ui/tabs.mdx +0 -271
- /package/.docs/raw/docs/{(docs) → (getting-started)}/architecture.mdx +0 -0
- /package/.docs/raw/docs/{(docs) → (getting-started)}/base-ui.mdx +0 -0
- /package/.docs/raw/docs/{(docs) → (getting-started)}/llm.mdx +0 -0
- /package/.docs/raw/docs/{(docs) → (getting-started)}/rtl.mdx +0 -0
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Tabs
|
|
3
|
-
description: A multi-variant tabs component for organizing content into switchable panels.
|
|
4
|
-
links:
|
|
5
|
-
- label: Radix UI Tabs (Radix styles)
|
|
6
|
-
url: https://www.radix-ui.com/primitives/docs/components/tabs
|
|
7
|
-
- label: Base UI Tabs (base styles)
|
|
8
|
-
url: https://base-ui.com/react/components/tabs
|
|
9
|
-
platforms: ["react"]
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
import { PreviewCode } from "@/components/docs/preview-code.server";
|
|
13
|
-
import {
|
|
14
|
-
TabsSample,
|
|
15
|
-
TabsVariantsSample,
|
|
16
|
-
TabsSizesSample,
|
|
17
|
-
TabsWithIconsSample,
|
|
18
|
-
TabsControlledSample,
|
|
19
|
-
TabsAsLinkSample,
|
|
20
|
-
TabsAnimatedIndicatorSample,
|
|
21
|
-
} from "@/components/docs/samples/tabs";
|
|
22
|
-
import * as TabsRadixSamples from "@/components/docs/samples/tabs.radix";
|
|
23
|
-
import { Flavored, FlavorSwitcher } from "@/components/docs/contexts/flavor.server";
|
|
24
|
-
|
|
25
|
-
<Callout>
|
|
26
|
-
This is a **standalone component** that does not depend on the assistant-ui runtime. Use it anywhere in your application.
|
|
27
|
-
</Callout>
|
|
28
|
-
|
|
29
|
-
<FlavorSwitcher />
|
|
30
|
-
|
|
31
|
-
<Flavored radix={<TabsRadixSamples.TabsSample />} base={<TabsSample />} />
|
|
32
|
-
|
|
33
|
-
## Installation
|
|
34
|
-
|
|
35
|
-
<InstallCommand shadcn={["tabs"]} />
|
|
36
|
-
|
|
37
|
-
## Usage
|
|
38
|
-
|
|
39
|
-
```tsx
|
|
40
|
-
import {
|
|
41
|
-
Tabs,
|
|
42
|
-
TabsList,
|
|
43
|
-
TabsTrigger,
|
|
44
|
-
TabsContent,
|
|
45
|
-
} from "@/components/assistant-ui/tabs";
|
|
46
|
-
|
|
47
|
-
export function Example() {
|
|
48
|
-
return (
|
|
49
|
-
<Tabs defaultValue="account">
|
|
50
|
-
<TabsList>
|
|
51
|
-
<TabsTrigger value="account">Account</TabsTrigger>
|
|
52
|
-
<TabsTrigger value="password">Password</TabsTrigger>
|
|
53
|
-
</TabsList>
|
|
54
|
-
<TabsContent value="account">Account settings here.</TabsContent>
|
|
55
|
-
<TabsContent value="password">Password settings here.</TabsContent>
|
|
56
|
-
</Tabs>
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
## Examples
|
|
62
|
-
|
|
63
|
-
### Variants
|
|
64
|
-
|
|
65
|
-
Use the `variant` prop on `TabsList` to change the visual style. Child components inherit the variant automatically.
|
|
66
|
-
|
|
67
|
-
<Flavored radix={<TabsRadixSamples.TabsVariantsSample />} base={<TabsVariantsSample />} />
|
|
68
|
-
|
|
69
|
-
```tsx
|
|
70
|
-
<TabsList variant="default" /> // Muted background with shadow (default)
|
|
71
|
-
<TabsList variant="line" /> // Underline indicator
|
|
72
|
-
<TabsList variant="ghost" /> // Transparent with hover states
|
|
73
|
-
<TabsList variant="pills" /> // Rounded pill buttons
|
|
74
|
-
<TabsList variant="outline" /> // Border with background on active
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
### Sizes
|
|
78
|
-
|
|
79
|
-
Use the `size` prop on `TabsList` to change the tab height. Child components inherit the size automatically.
|
|
80
|
-
|
|
81
|
-
<Flavored radix={<TabsRadixSamples.TabsSizesSample />} base={<TabsSizesSample />} />
|
|
82
|
-
|
|
83
|
-
```tsx
|
|
84
|
-
<TabsList size="sm" /> // 32px height
|
|
85
|
-
<TabsList size="default" /> // 36px height
|
|
86
|
-
<TabsList size="lg" /> // 40px height
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
### With Icons
|
|
90
|
-
|
|
91
|
-
Tabs automatically style SVG icons placed inside triggers.
|
|
92
|
-
|
|
93
|
-
<PreviewCode file="components/docs/samples/tabs" name="TabsWithIconsSample" base={<TabsWithIconsSample />}>
|
|
94
|
-
<TabsRadixSamples.TabsWithIconsSample />
|
|
95
|
-
</PreviewCode>
|
|
96
|
-
|
|
97
|
-
### Controlled
|
|
98
|
-
|
|
99
|
-
Use `value` and `onValueChange` for controlled tab state.
|
|
100
|
-
|
|
101
|
-
<PreviewCode file="components/docs/samples/tabs" name="TabsControlledSample" base={<TabsControlledSample />}>
|
|
102
|
-
<TabsRadixSamples.TabsControlledSample />
|
|
103
|
-
</PreviewCode>
|
|
104
|
-
|
|
105
|
-
### As Link
|
|
106
|
-
|
|
107
|
-
Compose with `render` (Base UI) or `asChild` (Radix) on `TabsTrigger` to render as a different element, like a navigation link.
|
|
108
|
-
|
|
109
|
-
<PreviewCode file="components/docs/samples/tabs" name="TabsAsLinkSample" base={<TabsAsLinkSample />}>
|
|
110
|
-
<TabsRadixSamples.TabsAsLinkSample />
|
|
111
|
-
</PreviewCode>
|
|
112
|
-
|
|
113
|
-
### Animated Indicator
|
|
114
|
-
|
|
115
|
-
All variants feature smooth animated indicators that slide between tabs:
|
|
116
|
-
|
|
117
|
-
| Variant | Indicator Style |
|
|
118
|
-
|---------|-----------------|
|
|
119
|
-
| `default` | Sliding background with shadow |
|
|
120
|
-
| `line` | Sliding underline |
|
|
121
|
-
| `ghost` | Sliding background with hover effect |
|
|
122
|
-
| `pills` | Sliding pill background |
|
|
123
|
-
| `outline` | Sliding border |
|
|
124
|
-
|
|
125
|
-
<PreviewCode file="components/docs/samples/tabs" name="TabsAnimatedIndicatorSample" base={<TabsAnimatedIndicatorSample />}>
|
|
126
|
-
<TabsRadixSamples.TabsAnimatedIndicatorSample />
|
|
127
|
-
</PreviewCode>
|
|
128
|
-
|
|
129
|
-
## API Reference
|
|
130
|
-
|
|
131
|
-
### Composable API
|
|
132
|
-
|
|
133
|
-
| Component | Description |
|
|
134
|
-
|-----------|-------------|
|
|
135
|
-
| `Tabs` | The root component that manages tab state. |
|
|
136
|
-
| `TabsList` | The container for tab triggers. Set `variant` and `size` here. |
|
|
137
|
-
| `TabsTrigger` | An individual tab button. Inherits variant/size from TabsList. |
|
|
138
|
-
| `TabsContent` | The content panel for a tab. |
|
|
139
|
-
|
|
140
|
-
### Tabs
|
|
141
|
-
|
|
142
|
-
The root component that manages tab state.
|
|
143
|
-
|
|
144
|
-
<ParametersTable
|
|
145
|
-
type="TabsProps"
|
|
146
|
-
parameters={[
|
|
147
|
-
{
|
|
148
|
-
name: "defaultValue",
|
|
149
|
-
type: "string",
|
|
150
|
-
description: "The default active tab value (uncontrolled).",
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
name: "value",
|
|
154
|
-
type: "string",
|
|
155
|
-
description: "The controlled active tab value.",
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
name: "onValueChange",
|
|
159
|
-
type: "(value: string) => void",
|
|
160
|
-
description: "Callback when the active tab changes.",
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
name: "className",
|
|
164
|
-
type: "string",
|
|
165
|
-
description: "Additional CSS classes.",
|
|
166
|
-
},
|
|
167
|
-
]}
|
|
168
|
-
/>
|
|
169
|
-
|
|
170
|
-
### TabsList
|
|
171
|
-
|
|
172
|
-
The container for tab triggers. Set `variant` and `size` here to style all child components.
|
|
173
|
-
|
|
174
|
-
<ParametersTable
|
|
175
|
-
type="TabsListProps"
|
|
176
|
-
parameters={[
|
|
177
|
-
{
|
|
178
|
-
name: "variant",
|
|
179
|
-
type: '"default" | "line" | "ghost" | "pills" | "outline"',
|
|
180
|
-
default: '"default"',
|
|
181
|
-
description: "The visual style of the tabs. Child components inherit this automatically.",
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
name: "size",
|
|
185
|
-
type: '"sm" | "default" | "lg"',
|
|
186
|
-
default: '"default"',
|
|
187
|
-
description: "The size of the tabs. Child components inherit this automatically.",
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
name: "className",
|
|
191
|
-
type: "string",
|
|
192
|
-
description: "Additional CSS classes.",
|
|
193
|
-
},
|
|
194
|
-
]}
|
|
195
|
-
/>
|
|
196
|
-
|
|
197
|
-
### TabsTrigger
|
|
198
|
-
|
|
199
|
-
An individual tab button.
|
|
200
|
-
|
|
201
|
-
<ParametersTable
|
|
202
|
-
type="TabsTriggerProps"
|
|
203
|
-
parameters={[
|
|
204
|
-
{
|
|
205
|
-
name: "value",
|
|
206
|
-
type: "string",
|
|
207
|
-
required: true,
|
|
208
|
-
description: "The unique value for this tab.",
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
name: "render",
|
|
212
|
-
type: "ReactElement | function",
|
|
213
|
-
description: "Base UI: compose as a different element instead of rendering a button.",
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
name: "asChild",
|
|
217
|
-
type: "boolean",
|
|
218
|
-
default: "false",
|
|
219
|
-
description: "Radix: merge props with a child element instead of rendering a button.",
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
name: "disabled",
|
|
223
|
-
type: "boolean",
|
|
224
|
-
description: "Whether the tab is disabled.",
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
name: "className",
|
|
228
|
-
type: "string",
|
|
229
|
-
description: "Additional CSS classes.",
|
|
230
|
-
},
|
|
231
|
-
]}
|
|
232
|
-
/>
|
|
233
|
-
|
|
234
|
-
### TabsContent
|
|
235
|
-
|
|
236
|
-
The content panel for a tab.
|
|
237
|
-
|
|
238
|
-
<ParametersTable
|
|
239
|
-
type="TabsContentProps"
|
|
240
|
-
parameters={[
|
|
241
|
-
{
|
|
242
|
-
name: "value",
|
|
243
|
-
type: "string",
|
|
244
|
-
required: true,
|
|
245
|
-
description: "The value matching the corresponding TabsTrigger.",
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
name: "className",
|
|
249
|
-
type: "string",
|
|
250
|
-
description: "Additional CSS classes.",
|
|
251
|
-
},
|
|
252
|
-
]}
|
|
253
|
-
/>
|
|
254
|
-
|
|
255
|
-
### Style Variants (CVA)
|
|
256
|
-
|
|
257
|
-
| Export | Description |
|
|
258
|
-
|--------|-------------|
|
|
259
|
-
| `tabsListVariants` | Styles for the tabs list container. |
|
|
260
|
-
| `tabsActiveIndicatorVariants` | Styles for the animated active indicator. |
|
|
261
|
-
|
|
262
|
-
```tsx
|
|
263
|
-
import {
|
|
264
|
-
tabsListVariants,
|
|
265
|
-
tabsActiveIndicatorVariants,
|
|
266
|
-
} from "@/components/assistant-ui/tabs";
|
|
267
|
-
|
|
268
|
-
<div className={tabsListVariants({ variant: "ghost", size: "sm" })}>
|
|
269
|
-
Custom Tabs Container
|
|
270
|
-
</div>
|
|
271
|
-
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|