Atlassian navigation

A horizontal navigation component for Atlassian apps.

Deprecated

This package is deprecated. Use our new navigation system.

Installation

Package installation information
Installyarn add @atlaskit/atlassian-navigation
SourceBitbucket.org, (opens new window)
npm@atlaskit/atlassian-navigation, (opens new window)
Bundleunpkg.com, (opens new window)

Props

Container (Atlassian navigation)

isServer

Description

Whether nav is rendered on the server.

Typeboolean

isSSRPlaceholderEnabled

Description

Whether to enable SSR placeholder replacement.

Typeboolean

label

Required
Description

Describes the specific role of this navigation component for users viewing the page with a screen reader. Differentiates from other navigation components on a page.

Typestring

moreLabel

Description

Label used for the overflow menu button tooltip.

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

primaryItems

Required
Description

Slot for the primary actions.

TypeReact.ReactNodeArray

renderAppSwitcher

Description

Slot for the app switcher.

TypeReact.ComponentClass<{}, any> | React.FunctionComponent<{}>

renderCreate

Description

Slot for the create call to action button.

TypeReact.ComponentClass<{}, any> | React.FunctionComponent<{}>

renderHelp

Description

Slot for the help button.

TypeReact.ComponentClass<{}, any> | React.FunctionComponent<{}>

renderNotifications

Description

Slot for the notification button.

TypeReact.ComponentClass<{}, any> | React.FunctionComponent<{}>

renderProductHome

Required
Description

Slot for the product home logo which renders a product's brand.

TypeReact.ComponentClass<{}, any> | React.FunctionComponent<{}>

renderProfile

Description

Slot for the profile button.

TypeReact.ComponentClass<{}, any> | React.FunctionComponent<{}>

renderSearch

Description

Slot for the search textbox.

TypeReact.ComponentClass<{}, any> | React.FunctionComponent<{}>

renderSettings

Description

Slot for the settings button.

TypeReact.ComponentClass<{}, any> | React.FunctionComponent<{}>

renderSignIn

Description

Slot for the sign in button.

TypeReact.ComponentClass<{}, any> | React.FunctionComponent<{}>

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests.

Will set these elements when defined:

- Header element - `{testId}-header`
- Primary actions container - `{testId}-primary-actions`
- Secondary actions container - `{testId}-secondary-actions`
- Overflow menu popup - `{testId}-overflow-menu-popup`
- Overflow menu button - `{testId}-overflow-menu-trigger`
Typestring

theme

Description

Slow and discouraged custom theme API

Type{ mode: Mode; }

App Switcher

component

Description

Allows for overriding the component used to render the button. This is primarily intended for compatibility with custom routing libraries when using the href prop. For further usage information, refer to the documentation for button. @example

<Settings
  component={CustomRouterLink}
  href="/path/to/url"
/>
TypeComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any, keyof JSX.IntrinsicElements>

href

Description

If wanting to link to another page you can define the href.

Typestring

id

Description

Unique id for the button.

Typestring

isDisabled

Description

Causes the button to be disabled.

Typeboolean

isSelected

Description

Makes the element appear selected.

Typeboolean

label

Description

Adds a label to the button for users of assistive technologies.

Typestring

onBlur

Description

Handler called when the button loses focus.

Type(event: FocusEvent<HTMLElement, Element>) => void

onClick

Description

On click handler. Second argument is the instrumented analytics event. See @atlaskit/analytics-next for analyticsEvent type information

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>, analyticsEvent: any) => void

onFocus

Description

Handler called when the button gains focus.

Type(event: FocusEvent<HTMLElement, Element>) => void

onMouseDown

Description

Called when the mouse is initially clicked on the element.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseEnter

Description

Called when the mouse enters the element container.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseLeave

Description

Called when the mouse leaves the element container.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseUp

Description

Handler for the mouse up event.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

ref

Description

Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or call the ref with null if you passed a callback ref).

@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}

Typestring | Ref<any>

target

Description

If defining href you may want to define target as well.

Typestring

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests

Typestring

tooltip

Required
Description

Text that will be displayed in the tooltip when hovered or focused on the button.

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

Product home

aria-label

Description

Provide an accessible label, often used by screen readers.

Typestring

href

Description

Href to be passed to product home. Will add an interactive look and feel when defined.

Typestring

icon

Required
Description

The product icon. Expected to be an Icon from the Atlaskit Logo package. Visible on smaller screen sizes.

TypeReact.ComponentClass<Partial<Omit<BaseLogoProps, "appearance"> & { size?: "small"; }>, any> | React.FunctionComponent<Partial<Omit<BaseLogoProps, "appearance"> & { size?: "small"; }>>

logoMaxWidth

Description

Maximum width in pixel, that logo can acquire. Defaults to 260px.

Default260
Typenumber

onClick

Description

Optional onClick handler.

Type(event: React.MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseDown

Description

Optional mouseDown handler.

Type(event: React.MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

siteTitle

Description

Name of the site that appears next to the logo.

Typestring

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests.

Will set these elements when defined:

- Root element of the component - `{testId}-container`
- Product logo shown at large screen sizes - `{testId}-logo`
- Product icon shown at small screen sizes - `{testId}-icon`
- Site title - `{testId}-site-title`
Typestring

Custom product Home

href

Description

Href to be passed to product home. Will add an interactive look and feel when defined.

Typestring

iconAlt

Required
Description

Alt text for the icon that is displayed on small viewports.

Typestring

iconUrl

Required
Description

Url for the icon that is displayed on small viewports.

Typestring

logoAlt

Required
Description

Alt text for the icon that is displayed on large viewports.

Typestring

logoMaxWidth

Description

Maximum width of the logo, in pixels. Defaults to 260px.

Typenumber

logoUrl

Required
Description

Url for the icon that is displayed on large viewports.

Typestring

onClick

Description

Optional onClick handler.

Type(event: React.MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseDown

Description

Optional mouseDown handler.

Type(event: React.MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

siteTitle

Description

Name of the site that appears next to the logo.

Typestring

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests.

Will set these elements when defined:

- Root element of the component - `{testId}-container`
- Product logo shown at large screen sizes - `{testId}-logo`
- Product icon shown at small screen sizes - `{testId}-icon`
- Site title - `{testId}-site-title`
Typestring

Primary button

analyticsContext

Description

Additional information to be included in the context of analytics events that come from button.

Type{ [x: string]: any; }

autoFocus

Description

Set the button to autofocus on mount.

Typeboolean

children

Description

Text content to be rendered in the button.

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

className

Description

Add a classname to the button.

Typestring

component

Description

Allows for overriding the component used to render the button. This is primarily intended for compatibility with custom routing libraries when using the href prop.

For further usage information, refer to the documentation for button.

@example

<Settings
  component={CustomRouterLink}
  href="/path/to/url"
/>
TypeComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any, keyof JSX.IntrinsicElements>

data-has-overlay

Description
No description.
Typenever

data-testid

Description
No description.
Typenever

href

Description

Provides a URL that's used when the button is a link styled as a button.

Typestring

iconAfter

Description

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

Typestring | number | ReactElement<any, string | JSXElementConstructor<any>>

iconBefore

Description

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

Typestring | number | ReactElement<any, string | JSXElementConstructor<any>>

interactionName

Description

An optional name used to identify this component to press listeners. For example, interaction tracing. For more information, see UFO integration into Design System components.

Typestring

isDisabled

Description

Set if the button is disabled.

Typeboolean

isHighlighted

Description

Will set the appearance of the button to look highlighted.

Typeboolean

isLoading

Description
No description.
Typeboolean

isSelected

Description

Change the style to indicate the button is selected.

Typeboolean

onBlur

Description

Handler called on blur.

Type(event: FocusEvent<HTMLElement, Element>) => void

onClick

Description

On click handler. See @atlaskit/analytics-next for analyticsEvent type information

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>, analyticsEvent: any) => void

onFocus

Description

Handler called on focus.

Type(event: FocusEvent<HTMLElement, Element>) => void

ref

Description

Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or call the ref with null if you passed a callback ref).

@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}

Typestring | Ref<HTMLElement>

shortcut

Description

Display a keyboard shortcut in the tooltip.

Keys will be displayed as individual keyboard key segments after the tooltip content.

Note: it will only be used if the tooltip prop is also provided.

Typestring[]

shouldFitContainer

Description

Option to fit button width to its parent width.

Typeboolean

spacing

Description

Set the amount of padding in the button.

Type"default" | "compact" | "none"

target

Description

Pass target down to the button. If a href is provided, this will be a semantic link styled as a button.

Type"_self" | "_blank" | "_parent" | "_top" | (string & {})

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests. A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests

Typestring

theme

Description

Slow + discouraged custom theme API See custom theme guide for usage details

Type(current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens

tooltip

Description

Optional text to show when the button is focused or hovered.

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

type

Description

Pass type down to the button.

Type"button" | "submit" | "reset"

Primary dropdown button

analyticsContext

Description

Additional information to be included in the context of analytics events that come from button.

Type{ [x: string]: any; }

autoFocus

Description

Set the button to autofocus on mount.

Typeboolean

children

Description

Text content to be rendered in the button.

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

className

Description

Add a classname to the button.

Typestring

component

Description

Allows for overriding the component used to render the button. This is primarily intended for compatibility with custom routing libraries when using the href prop.

For further usage information, refer to the documentation for button.

@example

<Settings
  component={CustomRouterLink}
  href="/path/to/url"
/>
TypeComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any, keyof JSX.IntrinsicElements>

data-has-overlay

Description
No description.
Typenever

data-testid

Description
No description.
Typenever

href

Description

Provides a URL that's used when the button is a link styled as a button.

Typestring

iconBefore

Description

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

Typestring | number | ReactElement<any, string | JSXElementConstructor<any>>

interactionName

Description

An optional name used to identify this component to press listeners. For example, interaction tracing. For more information, see UFO integration into Design System components.

Typestring

isDisabled

Description

Set if the button is disabled.

Typeboolean

isHighlighted

Description

Will set the appearance of the button to look highlighted. Will set the appearance of the button to look highlighted.

Typeboolean

isLoading

Description
No description.
Typeboolean

isSelected

Description

Change the style to indicate the button is selected.

Typeboolean

onBlur

Description

Handler called on blur.

Type(event: FocusEvent<HTMLElement, Element>) => void

onClick

Description

On click handler. See @atlaskit/analytics-next for analyticsEvent type information

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>, analyticsEvent: any) => void

onFocus

Description

Handler called on focus.

Type(event: FocusEvent<HTMLElement, Element>) => void

ref

Description

Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or call the ref with null if you passed a callback ref).

@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}

Typestring | Ref<HTMLElement>

shortcut

Description

Display a keyboard shortcut in the tooltip.

Keys will be displayed as individual keyboard key segments after the tooltip content.

Note: it will only be used if the tooltip prop is also provided.

Typestring[]

shouldFitContainer

Description

Option to fit button width to its parent width.

Typeboolean

spacing

Description

Set the amount of padding in the button.

Type"default" | "compact" | "none"

target

Description

Pass target down to the button. If a href is provided, this will be a semantic link styled as a button.

Type"_self" | "_blank" | "_parent" | "_top" | (string & {})

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests. A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests

Typestring

theme

Description

Slow + discouraged custom theme API See custom theme guide for usage details

Type(current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens

tooltip

Description

Optional text to show when the button is focused or hovered. Optional text to show when the button is focused or hovered.

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

type

Description

Pass type down to the button.

Type"button" | "submit" | "reset"

Create button

buttonTooltip

Description

Text for the button tooltip when seen on large viewports.

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

href

Description

Causes the Create action to be rendered as a link. This is suitable for when the Create action is handled as a full page rather than in a modal-dialog.

Typestring

iconButtonTooltip

Description

Text for the icon button tooltip when seen on small viewports.

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

label

Description

Aria-label attribute for create button

Typestring

onClick

Description

Click handler. See @atlaskit/analytics-next for analyticsEvent type information

Type(e: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: any) => void

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests.

Will set these elements when defined:

  • Create button shown on large screen sizes - {testId}-button
  • Create icon button shown on small screen sizes - {testId}-icon-button
Typestring

text

Required
Description

Primary text for the call to action.

Typestring

Icon button

component

Description

Allows for overriding the component used to render the button. This is primarily intended for compatibility with custom routing libraries when using the href prop. For further usage information, refer to the documentation for button. @example

<Settings
  component={CustomRouterLink}
  href="/path/to/url"
/>
TypeComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any, keyof JSX.IntrinsicElements>

href

Description

If wanting to link to another page you can define the href.

Typestring

icon

Required
Description

Icon for the button.

Typestring | number | ReactElement<any, string | JSXElementConstructor<any>>

id

Description

Unique id for the button.

Typestring

isDisabled

Description

Causes the button to be disabled.

Typeboolean

isSelected

Description

Makes the element appear selected.

Typeboolean

isTooltipAnnouncementDisabled

Description

Controls tooltip announcement

Typeboolean

label

Description

Adds a label to the button for users of assistive technologies.

Typestring

onBlur

Description

Handler called when the button loses focus.

Type(event: FocusEvent<HTMLElement, Element>) => void

onClick

Description

On click handler. Second argument is the instrumented analytics event. See @atlaskit/analytics-next for analyticsEvent type information

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>, analyticsEvent: any) => void

onFocus

Description

Handler called when the button gains focus.

Type(event: FocusEvent<HTMLElement, Element>) => void

onMouseDown

Description

Called when the mouse is initially clicked on the element.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseEnter

Description

Called when the mouse enters the element container.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseLeave

Description

Called when the mouse leaves the element container.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseUp

Description

Handler for the mouse up event.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

ref

Description

Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or call the ref with null if you passed a callback ref).

@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}

Typestring | Ref<HTMLElement>

target

Description

If defining href you may want to define target as well.

Typestring

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests

Typestring

theme

Description

Theme for the icon button.

Type(current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens

tooltip

Required
Description

Text that will be displayed in the tooltip when hovered or focused on the button.

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

component

Description

Allows for overriding the component used to render the button. This is primarily intended for compatibility with custom routing libraries when using the href prop. For further usage information, refer to the documentation for button. @example

<Settings
  component={CustomRouterLink}
  href="/path/to/url"
/>
TypeReact.ComponentType<React.AllHTMLAttributes<HTMLElement>> | React.ElementType<any, keyof React.JSX.IntrinsicElements>

href

Description

If wanting to link to another page you can define the href.

Typestring

id

Description

Unique id for the button.

Typestring

isDisabled

Description

Causes the button to be disabled.

Typeboolean

isSelected

Description

Makes the element appear selected.

Typeboolean

label

Required
Description

Adds a label to the button for users of assistive technologies. Used to describe the search icon and text field for people viewing the page with a screen reader.

Typestring

onBlur

Description

Handler called when the button loses focus.

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

onClick

Description

On click handler. Second argument is the instrumented analytics event. See @atlaskit/analytics-next for analyticsEvent type information

Type(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: any) => void

onFocus

Description

Handler called when the button gains focus.

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

onMouseDown

Description

Called when the mouse is initially clicked on the element.

Type(event: React.MouseEvent<HTMLElement, MouseEvent>) => void

onMouseEnter

Description

Called when the mouse enters the element container.

Type(event: React.MouseEvent<HTMLElement, MouseEvent>) => void

onMouseLeave

Description

Called when the mouse leaves the element container.

Type(event: React.MouseEvent<HTMLElement, MouseEvent>) => void

onMouseUp

Description

Handler for the mouse up event.

Type(event: React.MouseEvent<HTMLElement, MouseEvent>) => void

placeholder

Required
Description

Placeholder text for the search textbox.

Typestring

target

Description

If defining href you may want to define target as well.

Typestring

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests

Typestring

tooltip

Required
Description

Text that will be displayed in the tooltip when hovered or focused on the button.

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

value

Description

Value of search field.

Typestring

Notifications button

badge

Required
Description

Component to be used for the badge. Generally you'll want to use NotificationIndicator from @atlaskit/notification-indicator.

TypeComponentClass<{}, any> | FunctionComponent<{}>

component

Description

Allows for overriding the component used to render the button. This is primarily intended for compatibility with custom routing libraries when using the href prop. For further usage information, refer to the documentation for button. @example

<Settings
  component={CustomRouterLink}
  href="/path/to/url"
/>
TypeComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any, keyof JSX.IntrinsicElements>

href

Description

If wanting to link to another page you can define the href.

Typestring

id

Description

Unique id for the button.

Typestring

isDisabled

Description

Causes the button to be disabled.

Typeboolean

isSelected

Description

Makes the element appear selected.

Typeboolean

label

Description

Adds a label to the button for users of assistive technologies.

Typestring

onBlur

Description

Handler called when the button loses focus.

Type(event: FocusEvent<HTMLElement, Element>) => void

onClick

Description

On click handler. Second argument is the instrumented analytics event. See @atlaskit/analytics-next for analyticsEvent type information

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>, analyticsEvent: any) => void

onFocus

Description

Handler called when the button gains focus.

Type(event: FocusEvent<HTMLElement, Element>) => void

onMouseDown

Description

Called when the mouse is initially clicked on the element.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseEnter

Description

Called when the mouse enters the element container.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseLeave

Description

Called when the mouse leaves the element container.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseUp

Description

Handler for the mouse up event.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

ref

Description

Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or call the ref with null if you passed a callback ref).

@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}

Typestring | Ref<any>

target

Description

If defining href you may want to define target as well.

Typestring

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests

Typestring

tooltip

Required
Description

Text that will be displayed in the tooltip when hovered or focused on the button.

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

Help button

badge

Description

Component to be used for the badge. Generally you'll want to use NotificationIndicator from @atlaskit/notification-indicator.

TypeComponentClass<{}, any> | FunctionComponent<{}>

component

Description

Allows for overriding the component used to render the button. This is primarily intended for compatibility with custom routing libraries when using the href prop. For further usage information, refer to the documentation for button. @example

<Settings
  component={CustomRouterLink}
  href="/path/to/url"
/>
TypeComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any, keyof JSX.IntrinsicElements>

href

Description

If wanting to link to another page you can define the href.

Typestring

id

Description

Unique id for the button.

Typestring

isDisabled

Description

Causes the button to be disabled.

Typeboolean

isSelected

Description

Makes the element appear selected.

Typeboolean

label

Description

Adds a label to the button for users of assistive technologies.

Typestring

onBlur

Description

Handler called when the button loses focus.

Type(event: FocusEvent<HTMLElement, Element>) => void

onClick

Description

On click handler. Second argument is the instrumented analytics event. See @atlaskit/analytics-next for analyticsEvent type information

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>, analyticsEvent: any) => void

onFocus

Description

Handler called when the button gains focus.

Type(event: FocusEvent<HTMLElement, Element>) => void

onMouseDown

Description

Called when the mouse is initially clicked on the element.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseEnter

Description

Called when the mouse enters the element container.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseLeave

Description

Called when the mouse leaves the element container.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseUp

Description

Handler for the mouse up event.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

ref

Description

Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or call the ref with null if you passed a callback ref).

@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}

Typestring | Ref<any>

target

Description

If defining href you may want to define target as well.

Typestring

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests

Typestring

tooltip

Required
Description

Text that will be displayed in the tooltip when hovered or focused on the button.

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

Settings button

component

Description

Allows for overriding the component used to render the button. This is primarily intended for compatibility with custom routing libraries when using the href prop. For further usage information, refer to the documentation for button. @example

<Settings
  component={CustomRouterLink}
  href="/path/to/url"
/>
TypeComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any, keyof JSX.IntrinsicElements>

href

Description

If wanting to link to another page you can define the href.

Typestring

id

Description

Unique id for the button.

Typestring

isDisabled

Description

Causes the button to be disabled.

Typeboolean

isSelected

Description

Makes the element appear selected.

Typeboolean

label

Description

Adds a label to the button for users of assistive technologies.

Typestring

onBlur

Description

Handler called when the button loses focus.

Type(event: FocusEvent<HTMLElement, Element>) => void

onClick

Description

On click handler. Second argument is the instrumented analytics event. See @atlaskit/analytics-next for analyticsEvent type information

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>, analyticsEvent: any) => void

onFocus

Description

Handler called when the button gains focus.

Type(event: FocusEvent<HTMLElement, Element>) => void

onMouseDown

Description

Called when the mouse is initially clicked on the element.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseEnter

Description

Called when the mouse enters the element container.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseLeave

Description

Called when the mouse leaves the element container.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseUp

Description

Handler for the mouse up event.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

ref

Description

Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or call the ref with null if you passed a callback ref).

@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}

Typestring | Ref<any>

target

Description

If defining href you may want to define target as well.

Typestring

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests

Typestring

tooltip

Required
Description

Text that will be displayed in the tooltip when hovered or focused on the button.

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

Sign In button

component

Description

Allows for overriding the component used to render the button. This is primarily intended for compatibility with custom routing libraries when using the href prop. For further usage information, refer to the documentation for button. @example

<Settings
  component={CustomRouterLink}
  href="/path/to/url"
/>
TypeReact.ComponentType<React.AllHTMLAttributes<HTMLElement>> | React.ElementType<any, keyof React.JSX.IntrinsicElements>

href

Description

If wanting to link to another page you can define the href.

Typestring

id

Description

Unique id for the button.

Typestring

isDisabled

Description

Causes the button to be disabled.

Typeboolean

isSelected

Description

Makes the element appear selected.

Typeboolean

label

Description

Adds a label to the button for users of assistive technologies.

Typestring

onBlur

Description

Handler called when the button loses focus.

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

onClick

Description

On click handler. Second argument is the instrumented analytics event. See @atlaskit/analytics-next for analyticsEvent type information

Type(event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: any) => void

onFocus

Description

Handler called when the button gains focus.

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

onMouseDown

Description

Called when the mouse is initially clicked on the element.

Type(event: React.MouseEvent<HTMLElement, MouseEvent>) => void

onMouseEnter

Description

Called when the mouse enters the element container.

Type(event: React.MouseEvent<HTMLElement, MouseEvent>) => void

onMouseLeave

Description

Called when the mouse leaves the element container.

Type(event: React.MouseEvent<HTMLElement, MouseEvent>) => void

onMouseUp

Description

Handler for the mouse up event.

Type(event: React.MouseEvent<HTMLElement, MouseEvent>) => void

target

Description

If defining href you may want to define target as well.

Typestring

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests

Typestring

tooltip

Required
Description

Text that will be displayed in the tooltip when hovered or focused on the button.

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

Profile button

component

Description

Allows for overriding the component used to render the button. This is primarily intended for compatibility with custom routing libraries when using the href prop. For further usage information, refer to the documentation for button. @example

<Settings
  component={CustomRouterLink}
  href="/path/to/url"
/>
TypeComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any, keyof JSX.IntrinsicElements>

href

Description

If wanting to link to another page you can define the href.

Typestring

icon

Required
Description

Icon for the button.

Typestring | number | ReactElement<any, string | JSXElementConstructor<any>>

id

Description

Unique id for the button.

Typestring

isDisabled

Description

Causes the button to be disabled.

Typeboolean

isSelected

Description

Makes the element appear selected.

Typeboolean

isTooltipAnnouncementDisabled

Description

Controls tooltip announcement

Typeboolean

label

Description

Adds a label to the button for users of assistive technologies.

Typestring

onBlur

Description

Handler called when the button loses focus.

Type(event: FocusEvent<HTMLElement, Element>) => void

onClick

Description

On click handler. Second argument is the instrumented analytics event. See @atlaskit/analytics-next for analyticsEvent type information

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>, analyticsEvent: any) => void

onFocus

Description

Handler called when the button gains focus.

Type(event: FocusEvent<HTMLElement, Element>) => void

onMouseDown

Description

Called when the mouse is initially clicked on the element.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseEnter

Description

Called when the mouse enters the element container.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseLeave

Description

Called when the mouse leaves the element container.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

onMouseUp

Description

Handler for the mouse up event.

Type(event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void

ref

Description

Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or call the ref with null if you passed a callback ref).

@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}

Typestring | Ref<HTMLElement>

target

Description

If defining href you may want to define target as well.

Typestring

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests

Typestring

theme

Description

Theme for the icon button.

Type(current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens

tooltip

Required
Description

Text that will be displayed in the tooltip when hovered or focused on the button.

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

Skeleton Props

Create button skeleton

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests.

Typestring

text

Required
Description

Text to be displayed inside the skeleton create button.

Typestring

Icon button skeleton

children

Required
Description

Content to be placed inside the skeleton.

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

label

Description

Describes the specific role of this navigation component for users viewing the page with a screen reader. Differentiates from other navigation buttons on a page.

Typestring

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests.

Typestring

Primary button skeleton

children

Description

Children to be displayed inside the skeleton button. Renders if text prop not set

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

isDropdownButton

Description

Sets the appearance of the skeleton button to look like a dropdown button.

Typeboolean

isHighlighted

Description

Sets the appearance of the skeleton button to look highlighted.

Typeboolean

testId

Description

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

Typestring

text

Description

Text content to be displayed inside the skeleton button.

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

Secondary button skeletons

These props are shared by:

  • switcher button skeleton
  • notifications button skeleton
  • help button skeleton
  • settings button skeleton

label

Required
Description

Describes the specific role of this navigation component for users viewing the page with a screen reader. Use this to differentiate the buttons from other navigation buttons on a page.

Typestring

testId

Description

A testId prop is provided for specified elements, which is a unique string that appears as a data attribute data-testid in the rendered code, serving as a hook for automated tests.

Typestring
Was this page helpful?
We use this feedback to improve our documentation.
© 2026 AtlassianTrademark, (opens new window)Privacy, (opens new window)License