Inline dialog
An inline dialog is a pop-up container for small amounts of information. It can also contain controls.Caution
We are planning on deprecating Inline dialog. We recommend using the Popup component instead.
Installation
| Install | yarn add @atlaskit/inline-dialog |
|---|---|
| Source | Bitbucket.org, (opens new window) |
| npm | @atlaskit/inline-dialog, (opens new window) |
| Bundle | unpkg.com, (opens new window) |
Props
| Description | The elements that the InlineDialog will be positioned relative to. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | The elements to be displayed within the InlineDialog. |
|---|---|
| Type | ReactNode | (() => ReactNode) |
| Description | You should not be accessing this prop under any circumstances.
It is provided by |
|---|---|
| Type | (payload: AnalyticsEventPayload) => UIAnalyticsEvent |
| Description | This is a list of backup placements to try. When the preferred placement doesn't have enough space, the modifier will test the ones provided in the list, and use the first suitable one. If no fallback placements are suitable, it reverts back to the original placement. |
|---|---|
| Type | Placement[] |
| Description | Sets whether to show or hide the dialog. |
|---|---|
| Type | boolean |
| Description | Function called when the dialog is open and a click occurs anywhere outside the dialog. |
|---|---|
| Type | (obj: { isOpen: boolean; event: Event; }) => void |
| Description | Function called when you lose focus on the object. |
|---|---|
| Type | () => void |
| Description | Function called when user clicks on the open dialog. |
|---|---|
| Type | () => void |
| Description | Function called when user focuses on the open dialog. |
|---|---|
| Type | () => void |
| Description | Where the dialog should appear, relative to the contents of the children. |
|---|---|
| Type | "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end" |
| Description | No description. |
|---|---|
| Type | ((instance: any) => void) | RefObject<any> |
| Description | Placement strategy used. Can be 'fixed' or 'absolute'. Defaults to 'fixed'. |
|---|---|
| Type | "fixed" | "absolute" |
| Description | A |
|---|---|
| Type | string |