Blanket
A blanket covers the underlying UI for a layered component, such as a modal dialog or a tooltip.Installation
| Install | yarn add @atlaskit/blanket |
|---|---|
| Source | Bitbucket.org, (opens new window) |
| npm | @atlaskit/blanket, (opens new window) |
| Bundle | unpkg.com, (opens new window) |
Props
| Description | Additional information to be included in the |
|---|---|
| Type | { [x: string]: any; } |
| Description | The children to be rendered within the blanket. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | Sets whether the blanket has a tinted background color. |
|---|---|
| Type | boolean |
| Description | Handler function to be called when the blanket is clicked. |
|---|---|
| Type | (event: MouseEvent<HTMLDivElement, globalThis.MouseEvent>, analyticsEvent: UIAnalyticsEvent) => void |
| Description | No description. |
|---|---|
| Type | ((instance: HTMLDivElement) => void) | RefObject<HTMLDivElement> |
| Description | Whether mouse events can pass through the blanket. If |
|---|---|
| Type | boolean |
| Description | A |
|---|---|
| Type | string |