Skip to content

Commit 9388ebe

Browse files
Gregor WoiwodeGregor Woiwode
authored andcommitted
chore(tailwind:dialog): add headings for examples
1 parent 77c0498 commit 9388ebe

File tree

1 file changed

+25
-4
lines changed
  • apps/website/src/routes/docs/tailwind/(components)/dialog

1 file changed

+25
-4
lines changed

apps/website/src/routes/docs/tailwind/(components)/dialog/index.mdx

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { KeyboardInteractionTable } from '../../../../../components/keyboard-int
1010

1111
#### A window overlaid on either the primary window or another dialog window, rendering the content underneath inert. ([Definition comes from Radix-UI](https://www.radix-ui.com/docs/primitives/components/dialog))
1212

13-
## Basic Example
13+
## Basic Dialog
1414

1515
<Example01>
1616
```tsx
@@ -28,15 +28,36 @@ export const myComponent = component$(() => {
2828
<p id="dialog-text">I am a simple Dialog.</p>
2929
</Dialog.Content>
3030
<Dialog.Footer>
31-
<button onClick$={() => dialogRef.value?.close()}>Close Dialog</button>
31+
<button onClick$={() => dialogRef.value?.close()}>Close</button>
3232
</Dialog.Footer>
3333
</Dialog.Root>
3434
</>
3535
})
3636
```
3737
</Example01>
3838

39-
## Scrolling Content
39+
## Alerts
40+
> t.b.d
41+
42+
## Transistions
43+
> t.b.d
44+
45+
## Form dialogs
46+
> t.b.d
47+
48+
## Customization
49+
> t.b.d
50+
51+
## Optional sizes
52+
> t.b.d
53+
54+
## Full-Screen
55+
> t.b.d
56+
57+
## Responsive Full-Screen
58+
> t.b.d
59+
60+
## Scrolling long content
4061

4162
<Example02>
4263
```tsx
@@ -57,7 +78,7 @@ export const myComponent = component$(() => {
5778
</Dialog.Content>
5879
<Dialog.Footer>
5980
<button onClick$={() => dialogRef.value?.close()}>
60-
Close Dialog
81+
Close
6182
</button>
6283
</Dialog.Footer>
6384
</Dialog.Root>

0 commit comments

Comments
 (0)