Skip to content

Commit

Permalink
Update dialog-stack docs, export types
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbleasel committed Jan 20, 2025
1 parent e525eaa commit 3a138b1
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 47 deletions.
56 changes: 39 additions & 17 deletions apps/docs/content/docs/dialog-stack.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ description: Composable stacked dialogs, useful for creating a wizard, nested fo
icon: Layers
---

import { AutoTypeTable } from 'fumadocs-typescript/ui';

<PoweredBy packages={[
{ name: 'Radix UI Portal', url: 'https://www.radix-ui.com/primitives/docs/components/portal' },
]} />
Expand Down Expand Up @@ -314,32 +316,52 @@ All components accept the standard attributes relevant to their element and the

### DialogStack

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `clickable` | `boolean` | `false` | Whether the user can click previous dialogs to navigate |
| `open` | `boolean` | `false` | Whether the dialog is open |
| `onOpenChange` | `(open: boolean) => void` | `undefined` | Callback function to be called when the dialog is opened or closed |
<AutoTypeTable path="node_modules/@repo/dialog-stack/index.tsx" name="DialogStackProps" />

### DialogStackTrigger

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `asChild` | `boolean` | `false` | Whether the component should render the child as a React element |
<AutoTypeTable path="node_modules/@repo/dialog-stack/index.tsx" name="DialogStackTriggerProps" />

### DialogStackContent

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `offset` | `number` | `10` | The offset of the dialog |
<AutoTypeTable path="node_modules/@repo/dialog-stack/index.tsx" name="DialogStackContentProps" />

### DialogStackNext

<AutoTypeTable path="node_modules/@repo/dialog-stack/index.tsx" name="DialogStackNextProps" />

### DialogStackPrevious

<AutoTypeTable path="node_modules/@repo/dialog-stack/index.tsx" name="DialogStackPreviousProps" />

### DialogStackOverlay

<AutoTypeTable path="node_modules/@repo/dialog-stack/index.tsx" name="DialogStackOverlayProps" />

### DialogStackBody

<AutoTypeTable path="node_modules/@repo/dialog-stack/index.tsx" name="DialogStackBodyProps" />

### DialogStackHeader

<AutoTypeTable path="node_modules/@repo/dialog-stack/index.tsx" name="DialogStackHeaderProps" />

### DialogStackFooter

<AutoTypeTable path="node_modules/@repo/dialog-stack/index.tsx" name="DialogStackFooterProps" />

### DialogStackTitle

<AutoTypeTable path="node_modules/@repo/dialog-stack/index.tsx" name="DialogStackTitleProps" />

### DialogStackDescription

<AutoTypeTable path="node_modules/@repo/dialog-stack/index.tsx" name="DialogStackDescriptionProps" />

### DialogStackNext

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `asChild` | `boolean` | `false` | Whether the component should render the child as a React element |
<AutoTypeTable path="node_modules/@repo/dialog-stack/index.tsx" name="DialogStackNextProps" />

### DialogStackPrevious

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `asChild` | `boolean` | `false` | Whether the component should render the child as a React element |
<AutoTypeTable path="node_modules/@repo/dialog-stack/index.tsx" name="DialogStackPreviousProps" />
Loading

0 comments on commit 3a138b1

Please sign in to comment.