Modal button trigger

Internal use only. These components are available only within Atlassian.

Props

analyticsContext

Description

Additional information to be included in the context of Atlaskit analytics events that come from button. See the pressable or anchor primitive code examples for more information.

Type{ [x: string]: any; }

appearance

Description

The button style variation.

Type"warning" | "default" | "subtle" | "primary" | "discovery" | "danger" | "rovo"

autoFocus

Description

Set the button to autofocus on mount.

Typeboolean

children

Required
Description

Text content to be rendered in the button.

Typestring | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal

data-testid

Description
No description.
Typenever

entryPoint

Required
Description
No description.
TypeInternalEntryPointRepresentation<any, any, any, any, any>TEntryPoint

entryPointParams

Description

Parameters captured when loading the entry point. Changes after load are not propagated; use Relay, context, or another shared store for reactive state.

Type{}TEntryPoint extends EntryPoint<infer _TEntryPointComponent, infer TEntryPointParams extends {}> ? TEntryPointParams : never

entryPointProps

Description

Runtime props captured when the content is created. Changes after load are not propagated; use shared state to communicate with loaded content. Modal-controlled props from ModalComponentProps are supplied by the trigger; callers can override onClose.

TypeOmit<GetRuntimePropsFromComponent<GetComponentFromPreloadedEntryPoint<PreloadedEntryPoint<GetEntryPointComponentFromEntryPoint<TEntryPoint>>>>, keyof ModalComponentProps> & { ...; }

errorCloseText

Description
No description.
Typestring

errorFallback

Description
No description.
TypeReact.ComponentClass<ModalErrorFallbackProps, any> | React.FunctionComponent<ModalErrorFallbackProps>

errorText

Description
No description.
Typestring | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal

errorTitle

Description
No description.
Typestring | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal

Fallback

Description
No description.
TypeReact.ComponentClass<{ onClose?: () => void; }, any> | React.FunctionComponent<{ onClose?: () => void; }>

forwardedRef

Description
No description.
Type((instance: HTMLElement) => void) | React.RefObject<HTMLElement>

iconAfter

Description

Places an icon within the button, after the button's text.

TypeReact.ComponentClass<(Omit<IconProps, "size"> | Omit<NewIconProps, "size" | "spacing">) & { motionOvershoot?: string; }, any> | React.FunctionComponent<...>

iconBefore

Description

Places an icon within the button, before the button's text.

TypeReact.ComponentClass<(Omit<IconProps, "size"> | Omit<NewIconProps, "size" | "spacing">) & { motionOvershoot?: string; }, any> | React.FunctionComponent<...>

interactionName

Description

An optional name used to identify the button to interaction content listeners. By default, button fires React UFO (Unified Frontend Observability) press interactions for available listeners. This helps Atlassian measure performance and reliability. See the pressable or anchor primitive code examples for more information.

Typestring

isDisabled

Description

Disable the button to prevent user interaction.

Typeboolean

isLoading

Description

Conditionally show a spinner over the top of a button

Typeboolean

isSelected

Description

Indicates that the button is selected.

Typeboolean

loadingText

Description
No description.
Typestring | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal

modalProps

Description
No description.
TypeModalDialogProps

modalTitle

Description

Title shown in the modal while the entry point loads or fails.

Typestring | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal

onBlur

Description

Handler called on blur.

Type(event: React.FocusEvent<HTMLButtonElement, Element>) => void

onClick

Description

Handler called on click. You can use the second argument to fire Atlaskit analytics events on custom channels. They could then be routed to GASv3 analytics. See the pressable or anchor primitive code examples for information on firing Atlaskit analytics events or routing these to GASv3 analytics.

Type(e: React.MouseEvent<HTMLButtonElement, MouseEvent>, analyticsEvent: UIAnalyticsEvent) => void

onError

Description
No description.
Type(props: { error: Error; errorInfo: React.ErrorInfo; }) => void

onFocus

Description

Handler called on focus.

Type(event: React.FocusEvent<HTMLButtonElement, Element>) => void

onRequestClose

Description
No description.
Type(event?: KeyboardOrMouseEvent) => boolean | void

preloadOnFocus

Description
No description.
Typeboolean

shouldFitContainer

Description

Option to fit button width to its parent width.

Typeboolean

source

Description
No description.
Type{ [key: string]: unknown; id: string; packageName: string; teamName: string; }

spacing

Description

Controls the amount of padding in the button.

Type"default" | "compact"

testId

Description

A unique string that appears as data attribute data-testid in the rendered code, serving as a hook for automated tests.

Typestring

title

Description
No description.
TypeReact.ReactNode & string
Was this page helpful?
We use this feedback to improve our documentation.
© 2026 AtlassianTrademark, (opens new window)Privacy, (opens new window)License