diff --git a/apps/docs/content/docs/web/components/alert-dialog.mdx b/apps/docs/content/docs/web/components/alert-dialog.mdx index afdd3bef..7e2543df 100644 --- a/apps/docs/content/docs/web/components/alert-dialog.mdx +++ b/apps/docs/content/docs/web/components/alert-dialog.mdx @@ -133,7 +133,7 @@ import { AlertDialog } from "@/components/panelui/alert-dialog" - **`AlertDialog.Media`** — A glyph in a disc of the dialog's tone, above the title. - **`AlertDialog.Title`** — The question. The dialog is announced by it. - **`AlertDialog.Description`** — What follows from each answer, read out after the title. -- **`AlertDialog.Footer`** — The answers, side by side at equal widths in the band under the panel. Keep it a direct child of `AlertDialog.Content`. +- **`AlertDialog.Footer`** — The answers, side by side at equal widths in the band under the panel. It can sit at any depth inside `AlertDialog.Content`. - **`AlertDialog.Cancel`** — Closes the dialog and does nothing else. It reads "Cancel" unless given children. - **`AlertDialog.Action`** — Does what the dialog asks about, then closes it. It takes a [Button](/docs/web/components/button)'s props, a `tone`, and `variant="soft"` for an answer that is not the main one. When `onClick` returns a promise, it waits for it. `hold` makes it an action that must be pressed and held. diff --git a/apps/docs/content/docs/web/components/dialog.mdx b/apps/docs/content/docs/web/components/dialog.mdx index 5e978078..da7df73e 100644 --- a/apps/docs/content/docs/web/components/dialog.mdx +++ b/apps/docs/content/docs/web/components/dialog.mdx @@ -164,7 +164,7 @@ import { Dialog } from "@/components/panelui/dialog" - **`Dialog.List`** — A list of one-line choices, such as time zones or the projects to move something to. The arrow keys, Home and End move between its items, and it opens scrolled to the selected one. - **`Dialog.ListGroup`** — A run of items under a `label`, which stays pinned at the top while its items scroll under it. - **`Dialog.ListItem`** — One choice. `selected` tints and checks it, `onSelect` is called when it is pressed or chosen with Enter, and `meta` puts quieter text at its end in figures that line up. -- **`Dialog.Footer`** — The buttons. In the inset look they sit in the band as equal pills; in `plain` they sit at the end of a ruled strip. Keep it a direct child of `Dialog.Content`. +- **`Dialog.Footer`** — The buttons. In the inset look they sit in the band as equal pills, from any depth inside `Dialog.Content`. In `plain` they stay where written, at the end of a ruled strip, so keep the footer after `Dialog.Body` to hold it outside the scroll. - **`Dialog.Close`** — Closes the dialog. Pass your own button as `render`, such as Cancel. ## Examples @@ -829,7 +829,11 @@ When it opens, focus goes to the first field in it. The close button is drawn in ### Forms -Put the `