Onboarding (spotlight)
An onboarding spotlight introduces new features to users through focused messages or multi-step tours.Deprecated
This package is deprecated. Use @atlaskit/spotlight.
Installation
| Install | yarn add @atlaskit/onboarding |
|---|---|
| Source | Bitbucket.org, (opens new window) |
| npm | @atlaskit/onboarding, (opens new window) |
| Bundle | unpkg.com, (opens new window) |
Props
| Description | Buttons to render in the footer. |
|---|---|
| Type | Action[] |
| Description | An optional node to be rendered beside the footer actions. |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |
| Description | The elements rendered in the modal. |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |
| Description | Where the dialog should appear, relative to the contents of the children. |
|---|---|
| Type | "top left" | "top center" | "top right" | "right top" | "right middle" | "right bottom" | "bottom left" | "bottom center" | "bottom right" | "left top" | "left middle" | "left bottom" |
| Description | The width of the dialog in pixels. The minimum possible width is 160px and the maximum width is 600px. |
|---|---|
| Default | 400 |
| Type | number |
| Description | Optional element rendered above the body. |
|---|---|
| Type | React.ComponentClass<any, any> | React.FunctionComponent<any> |
| Description | Heading text rendered above the body. |
|---|---|
| Type | string |
| Description | An optional element rendered to the right of the heading. |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |
| Description | Path to the image. |
|---|---|
| Type | string |
| Description | Refers to an |
|---|---|
| Type | string |
| Description | Whether or not to display a pulse animation around the spotlighted element. |
|---|---|
| Default | true |
| Type | boolean |
| Description | Used set the 'block' attribute on scrollIntoView, which determines the vertical alignment of the target node to the nearest scrollable ancestor. |
|---|---|
| Type | "start" | "center" | "end" | "nearest" |
| Description | Whether the spotlight should check for changes to the spotlighted element or its position. This prop may negatively affect performance and should be used only if layout shifts are causing the spotlight to be positioned incorrectly. |
|---|---|
| Default | false |
| Type | boolean |
| Description | The name of the SpotlightTarget. |
|---|---|
| Type | string |
| Description | The background color of the element being highlighted. |
|---|---|
| Type | string |
| Description | The spotlight target node. |
|---|---|
| Type | HTMLElement |
| Description | Function to fire when a person clicks on the cloned target. |
|---|---|
| Type | (eventData: { event: React.MouseEvent<HTMLElement, MouseEvent>; target?: string; }) => void |
| Description | The border radius of the element being highlighted. |
|---|---|
| Type | string | number |
| Description | Alternative element to render than the wrapped target. |
|---|---|
| Type | React.ComponentClass<any, any> | React.FunctionComponent<any> |
| Description | This prop is a unique string that appears as an attribute
|
|---|---|
| Default | "spotlight" |
| Type | string |
| Description | Refers to a value of an |
|---|---|
| Type | string |
Spotlight manager props
| Description | Boolean prop for toggling blanket transparency. |
|---|---|
| Type | boolean |
| Description | Typically the app, or a section of the app. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | Component is deprecated and will be removed in the future. |
|---|---|
| Type | "symbol" | "object" | "footer" | ComponentType<any> | "header" | "image" | "label" | "center" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | ... 163 more ... | "view" |
| Description | Handler function to be called when the blanket is clicked. |
|---|---|
| Type | () => void |