ui/client/features/tests/components/CloneDialog
Cockpit client (features), next. Source: ui/client/features/tests/components/CloneDialog.tsx.
Functions#
CloneDialog()#
CloneDialog(
__namedParameters):Element
Defined in: ui/client/features/tests/components/CloneDialog.tsx:16
The lock's refusal, made useful: says why a generated test cannot be edited and offers the clone right here.
A real modal dialog, behind components/ui's Dialog wrapper: Radix Primitives owns the focus trap,
Esc-to-close and return-focus-to-trigger that this used to hand-roll.
Props#
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
dialog |
CloneDialogView |
Yes | — | |
onName |
(name: string) => void |
Yes | — | |
onCreate |
() => void |
Yes | — | |
onCancel |
() => void |
Yes | — | |
onShowCode |
() => void |
Yes | — |
Returns#
Element