Atlassian navigation
A horizontal navigation component for Atlassian apps.Deprecated
This package is deprecated. Use our new navigation system.
Installation
| Install | yarn add @atlaskit/atlassian-navigation |
|---|---|
| Source | Bitbucket.org, (opens new window) |
| npm | @atlaskit/atlassian-navigation, (opens new window) |
| Bundle | unpkg.com, (opens new window) |
Props
App Switcher
| Description | Allows for overriding the component used to render the button.
This is primarily intended for compatibility with custom
routing libraries when using the |
|---|---|
| Type | ComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any, keyof JSX.IntrinsicElements> |
| Description | If wanting to link to another page you can define the href. |
|---|---|
| Type | string |
| Description | Unique id for the button. |
|---|---|
| Type | string |
| Description | Causes the button to be disabled. |
|---|---|
| Type | boolean |
| Description | Makes the element appear selected. |
|---|---|
| Type | boolean |
| Description | Adds a label to the button for users of assistive technologies. |
|---|---|
| Type | string |
| Description | Handler called when the button loses focus. |
|---|---|
| Type | (event: FocusEvent<HTMLElement, Element>) => void |
| 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 |
| Description | Handler called when the button gains focus. |
|---|---|
| Type | (event: FocusEvent<HTMLElement, Element>) => void |
| Description | Called when the mouse is initially clicked on the element. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Called when the mouse enters the element container. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Called when the mouse leaves the element container. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Handler for the mouse up event. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Allows getting a ref to the component instance.
Once the component unmounts, React will set @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs} |
|---|---|
| Type | string | Ref<any> |
| Description | If defining |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
| Description | Text that will be displayed in the tooltip when hovered or focused on the button. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
Product home
| Description | Provide an accessible label, often used by screen readers. |
|---|---|
| Type | string |
| Description | Href to be passed to product home. Will add an interactive look and feel when defined. |
|---|---|
| Type | string |
| Description | The product icon. Expected to be an Icon from the Atlaskit Logo package. Visible on smaller screen sizes. |
|---|---|
| Type | React.ComponentClass<Partial<Omit<BaseLogoProps, "appearance"> & { size?: "small"; }>, any> | React.FunctionComponent<Partial<Omit<BaseLogoProps, "appearance"> & { size?: "small"; }>> |
| Description | The product logo, visible on larger screen sizes. |
|---|---|
| Type | React.ComponentClass<Partial<Omit<BaseLogoProps, "appearance"> & { size?: "small"; }>, any> | React.FunctionComponent<Partial<Omit<BaseLogoProps, "appearance"> & { size?: "small"; }>> |
| Description | Maximum width in pixel, that logo can acquire. Defaults to 260px. |
|---|---|
| Default | 260 |
| Type | number |
| Description | Optional onClick handler. |
|---|---|
| Type | (event: React.MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Optional mouseDown handler. |
|---|---|
| Type | (event: React.MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Name of the site that appears next to the logo. |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
Custom product Home
| Description | Href to be passed to product home. Will add an interactive look and feel when defined. |
|---|---|
| Type | string |
| Description | Alt text for the icon that is displayed on small viewports. |
|---|---|
| Type | string |
| Description | Url for the icon that is displayed on small viewports. |
|---|---|
| Type | string |
| Description | Alt text for the icon that is displayed on large viewports. |
|---|---|
| Type | string |
| Description | Maximum width of the logo, in pixels. Defaults to 260px. |
|---|---|
| Type | number |
| Description | Url for the icon that is displayed on large viewports. |
|---|---|
| Type | string |
| Description | Optional onClick handler. |
|---|---|
| Type | (event: React.MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Optional mouseDown handler. |
|---|---|
| Type | (event: React.MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Name of the site that appears next to the logo. |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
| Description | Additional information to be included in the |
|---|---|
| Type | { [x: string]: any; } |
| Description | Set the button to autofocus on mount. |
|---|---|
| Type | boolean |
| Description | Text content to be rendered in the button. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | Add a classname to the button. |
|---|---|
| Type | string |
| Description | Allows for overriding the component used to render the button.
This is primarily intended for compatibility with custom
routing libraries when using the For further usage information, refer to the documentation for button. @example |
|---|---|
| Type | ComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any, keyof JSX.IntrinsicElements> |
| Description | No description. |
|---|---|
| Type | never |
| Description | No description. |
|---|---|
| Type | never |
| Description | Provides a URL that's used when the button is a link styled as a button. |
|---|---|
| Type | string |
| Description | Places an icon within the button, after the button's text. |
|---|---|
| Type | string | number | ReactElement<any, string | JSXElementConstructor<any>> |
| Description | Places an icon within the button, before the button's text. |
|---|---|
| Type | string | number | ReactElement<any, string | JSXElementConstructor<any>> |
| 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. |
|---|---|
| Type | string |
| Description | Set if the button is disabled. |
|---|---|
| Type | boolean |
| Description | Will set the appearance of the button to look highlighted. |
|---|---|
| Type | boolean |
| Description | No description. |
|---|---|
| Type | boolean |
| Description | Change the style to indicate the button is selected. |
|---|---|
| Type | boolean |
| Description | Handler called on blur. |
|---|---|
| Type | (event: FocusEvent<HTMLElement, Element>) => void |
| Description | On click handler. See @atlaskit/analytics-next for analyticsEvent type information |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>, analyticsEvent: any) => void |
| Description | Handler called on focus. |
|---|---|
| Type | (event: FocusEvent<HTMLElement, Element>) => void |
| Description | Allows getting a ref to the component instance.
Once the component unmounts, React will set @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs} |
|---|---|
| Type | string | Ref<HTMLElement> |
| 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 |
|---|---|
| Type | string[] |
| Description | Option to fit button width to its parent width. |
|---|---|
| Type | boolean |
| Description | Set the amount of padding in the button. |
|---|---|
| Type | "default" | "compact" | "none" |
| 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 & {}) |
| Description | A |
|---|---|
| Type | string |
| Description | Slow + discouraged custom theme API See custom theme guide for usage details |
|---|---|
| Type | (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens |
| Description | Optional text to show when the button is focused or hovered. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | Pass type down to the button. |
|---|---|
| Type | "button" | "submit" | "reset" |
| Description | Additional information to be included in the |
|---|---|
| Type | { [x: string]: any; } |
| Description | Set the button to autofocus on mount. |
|---|---|
| Type | boolean |
| Description | Text content to be rendered in the button. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | Add a classname to the button. |
|---|---|
| Type | string |
| Description | Allows for overriding the component used to render the button.
This is primarily intended for compatibility with custom
routing libraries when using the For further usage information, refer to the documentation for button. @example |
|---|---|
| Type | ComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any, keyof JSX.IntrinsicElements> |
| Description | No description. |
|---|---|
| Type | never |
| Description | No description. |
|---|---|
| Type | never |
| Description | Provides a URL that's used when the button is a link styled as a button. |
|---|---|
| Type | string |
| Description | Places an icon within the button, before the button's text. |
|---|---|
| Type | string | number | ReactElement<any, string | JSXElementConstructor<any>> |
| 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. |
|---|---|
| Type | string |
| Description | Set if the button is disabled. |
|---|---|
| Type | boolean |
| Description | Will set the appearance of the button to look highlighted. Will set the appearance of the button to look highlighted. |
|---|---|
| Type | boolean |
| Description | No description. |
|---|---|
| Type | boolean |
| Description | Change the style to indicate the button is selected. |
|---|---|
| Type | boolean |
| Description | Handler called on blur. |
|---|---|
| Type | (event: FocusEvent<HTMLElement, Element>) => void |
| Description | On click handler. See @atlaskit/analytics-next for analyticsEvent type information |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>, analyticsEvent: any) => void |
| Description | Handler called on focus. |
|---|---|
| Type | (event: FocusEvent<HTMLElement, Element>) => void |
| Description | Allows getting a ref to the component instance.
Once the component unmounts, React will set @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs} |
|---|---|
| Type | string | Ref<HTMLElement> |
| 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 |
|---|---|
| Type | string[] |
| Description | Option to fit button width to its parent width. |
|---|---|
| Type | boolean |
| Description | Set the amount of padding in the button. |
|---|---|
| Type | "default" | "compact" | "none" |
| 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 & {}) |
| Description | A |
|---|---|
| Type | string |
| Description | Slow + discouraged custom theme API See custom theme guide for usage details |
|---|---|
| Type | (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens |
| Description | Optional text to show when the button is focused or hovered. Optional text to show when the button is focused or hovered. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | Pass type down to the button. |
|---|---|
| Type | "button" | "submit" | "reset" |
| 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. |
|---|---|
| Type | string |
| Description | Text for the icon button tooltip when seen on small viewports. |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |
| Description | Aria-label attribute for create button |
|---|---|
| Type | string |
| Description | Click handler. See @atlaskit/analytics-next for analyticsEvent type information |
|---|---|
| Type | (e: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: any) => void |
| Description | A Will set these elements when defined:
|
|---|---|
| Type | string |
| Description | Primary text for the call to action. |
|---|---|
| Type | string |
| Description | Allows for overriding the component used to render the button.
This is primarily intended for compatibility with custom
routing libraries when using the |
|---|---|
| Type | ComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any, keyof JSX.IntrinsicElements> |
| Description | If wanting to link to another page you can define the href. |
|---|---|
| Type | string |
| Description | Icon for the button. |
|---|---|
| Type | string | number | ReactElement<any, string | JSXElementConstructor<any>> |
| Description | Unique id for the button. |
|---|---|
| Type | string |
| Description | Causes the button to be disabled. |
|---|---|
| Type | boolean |
| Description | Makes the element appear selected. |
|---|---|
| Type | boolean |
| Description | Controls tooltip announcement |
|---|---|
| Type | boolean |
| Description | Adds a label to the button for users of assistive technologies. |
|---|---|
| Type | string |
| Description | Handler called when the button loses focus. |
|---|---|
| Type | (event: FocusEvent<HTMLElement, Element>) => void |
| 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 |
| Description | Handler called when the button gains focus. |
|---|---|
| Type | (event: FocusEvent<HTMLElement, Element>) => void |
| Description | Called when the mouse is initially clicked on the element. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Called when the mouse enters the element container. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Called when the mouse leaves the element container. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Handler for the mouse up event. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Allows getting a ref to the component instance.
Once the component unmounts, React will set @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs} |
|---|---|
| Type | string | Ref<HTMLElement> |
| Description | If defining |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
| Description | Theme for the icon button. |
|---|---|
| Type | (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens |
| Description | Text that will be displayed in the tooltip when hovered or focused on the button. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
Search
| Description | Allows for overriding the component used to render the button.
This is primarily intended for compatibility with custom
routing libraries when using the |
|---|---|
| Type | React.ComponentType<React.AllHTMLAttributes<HTMLElement>> | React.ElementType<any, keyof React.JSX.IntrinsicElements> |
| Description | If wanting to link to another page you can define the href. |
|---|---|
| Type | string |
| Description | Unique id for the button. |
|---|---|
| Type | string |
| Description | Causes the button to be disabled. |
|---|---|
| Type | boolean |
| Description | Makes the element appear selected. |
|---|---|
| Type | boolean |
| 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. |
|---|---|
| Type | string |
| Description | Handler called when the button loses focus. |
|---|---|
| Type | (event: React.FocusEvent<HTMLElement, Element>) => void |
| 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 |
| Description | Handler called when the button gains focus. |
|---|---|
| Type | (event: React.FocusEvent<HTMLElement, Element>) => void |
| Description | Called when the mouse is initially clicked on the element. |
|---|---|
| Type | (event: React.MouseEvent<HTMLElement, MouseEvent>) => void |
| Description | Called when the mouse enters the element container. |
|---|---|
| Type | (event: React.MouseEvent<HTMLElement, MouseEvent>) => void |
| Description | Called when the mouse leaves the element container. |
|---|---|
| Type | (event: React.MouseEvent<HTMLElement, MouseEvent>) => void |
| Description | Handler for the mouse up event. |
|---|---|
| Type | (event: React.MouseEvent<HTMLElement, MouseEvent>) => void |
| Description | Placeholder text for the search textbox. |
|---|---|
| Type | string |
| Description | If defining |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
| Description | Text that will be displayed in the tooltip when hovered or focused on the button. |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |
| Description | Value of search field. |
|---|---|
| Type | string |
| Description | Component to be used for the badge.
Generally you'll want to use |
|---|---|
| Type | ComponentClass<{}, any> | FunctionComponent<{}> |
| Description | Allows for overriding the component used to render the button.
This is primarily intended for compatibility with custom
routing libraries when using the |
|---|---|
| Type | ComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any, keyof JSX.IntrinsicElements> |
| Description | If wanting to link to another page you can define the href. |
|---|---|
| Type | string |
| Description | Unique id for the button. |
|---|---|
| Type | string |
| Description | Causes the button to be disabled. |
|---|---|
| Type | boolean |
| Description | Makes the element appear selected. |
|---|---|
| Type | boolean |
| Description | Adds a label to the button for users of assistive technologies. |
|---|---|
| Type | string |
| Description | Handler called when the button loses focus. |
|---|---|
| Type | (event: FocusEvent<HTMLElement, Element>) => void |
| 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 |
| Description | Handler called when the button gains focus. |
|---|---|
| Type | (event: FocusEvent<HTMLElement, Element>) => void |
| Description | Called when the mouse is initially clicked on the element. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Called when the mouse enters the element container. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Called when the mouse leaves the element container. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Handler for the mouse up event. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Allows getting a ref to the component instance.
Once the component unmounts, React will set @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs} |
|---|---|
| Type | string | Ref<any> |
| Description | If defining |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
| Description | Text that will be displayed in the tooltip when hovered or focused on the button. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | Component to be used for the badge.
Generally you'll want to use |
|---|---|
| Type | ComponentClass<{}, any> | FunctionComponent<{}> |
| Description | Allows for overriding the component used to render the button.
This is primarily intended for compatibility with custom
routing libraries when using the |
|---|---|
| Type | ComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any, keyof JSX.IntrinsicElements> |
| Description | If wanting to link to another page you can define the href. |
|---|---|
| Type | string |
| Description | Unique id for the button. |
|---|---|
| Type | string |
| Description | Causes the button to be disabled. |
|---|---|
| Type | boolean |
| Description | Makes the element appear selected. |
|---|---|
| Type | boolean |
| Description | Adds a label to the button for users of assistive technologies. |
|---|---|
| Type | string |
| Description | Handler called when the button loses focus. |
|---|---|
| Type | (event: FocusEvent<HTMLElement, Element>) => void |
| 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 |
| Description | Handler called when the button gains focus. |
|---|---|
| Type | (event: FocusEvent<HTMLElement, Element>) => void |
| Description | Called when the mouse is initially clicked on the element. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Called when the mouse enters the element container. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Called when the mouse leaves the element container. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Handler for the mouse up event. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Allows getting a ref to the component instance.
Once the component unmounts, React will set @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs} |
|---|---|
| Type | string | Ref<any> |
| Description | If defining |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
| Description | Text that will be displayed in the tooltip when hovered or focused on the button. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | Allows for overriding the component used to render the button.
This is primarily intended for compatibility with custom
routing libraries when using the |
|---|---|
| Type | ComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any, keyof JSX.IntrinsicElements> |
| Description | If wanting to link to another page you can define the href. |
|---|---|
| Type | string |
| Description | Unique id for the button. |
|---|---|
| Type | string |
| Description | Causes the button to be disabled. |
|---|---|
| Type | boolean |
| Description | Makes the element appear selected. |
|---|---|
| Type | boolean |
| Description | Adds a label to the button for users of assistive technologies. |
|---|---|
| Type | string |
| Description | Handler called when the button loses focus. |
|---|---|
| Type | (event: FocusEvent<HTMLElement, Element>) => void |
| 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 |
| Description | Handler called when the button gains focus. |
|---|---|
| Type | (event: FocusEvent<HTMLElement, Element>) => void |
| Description | Called when the mouse is initially clicked on the element. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Called when the mouse enters the element container. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Called when the mouse leaves the element container. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Handler for the mouse up event. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Allows getting a ref to the component instance.
Once the component unmounts, React will set @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs} |
|---|---|
| Type | string | Ref<any> |
| Description | If defining |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
| Description | Text that will be displayed in the tooltip when hovered or focused on the button. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | Allows for overriding the component used to render the button.
This is primarily intended for compatibility with custom
routing libraries when using the |
|---|---|
| Type | React.ComponentType<React.AllHTMLAttributes<HTMLElement>> | React.ElementType<any, keyof React.JSX.IntrinsicElements> |
| Description | If wanting to link to another page you can define the href. |
|---|---|
| Type | string |
| Description | Unique id for the button. |
|---|---|
| Type | string |
| Description | Causes the button to be disabled. |
|---|---|
| Type | boolean |
| Description | Makes the element appear selected. |
|---|---|
| Type | boolean |
| Description | Adds a label to the button for users of assistive technologies. |
|---|---|
| Type | string |
| Description | Handler called when the button loses focus. |
|---|---|
| Type | (event: React.FocusEvent<HTMLElement, Element>) => void |
| 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 |
| Description | Handler called when the button gains focus. |
|---|---|
| Type | (event: React.FocusEvent<HTMLElement, Element>) => void |
| Description | Called when the mouse is initially clicked on the element. |
|---|---|
| Type | (event: React.MouseEvent<HTMLElement, MouseEvent>) => void |
| Description | Called when the mouse enters the element container. |
|---|---|
| Type | (event: React.MouseEvent<HTMLElement, MouseEvent>) => void |
| Description | Called when the mouse leaves the element container. |
|---|---|
| Type | (event: React.MouseEvent<HTMLElement, MouseEvent>) => void |
| Description | Handler for the mouse up event. |
|---|---|
| Type | (event: React.MouseEvent<HTMLElement, MouseEvent>) => void |
| Description | If defining |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
| Description | Text that will be displayed in the tooltip when hovered or focused on the button. |
|---|---|
| Type | string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal |
| Description | Allows for overriding the component used to render the button.
This is primarily intended for compatibility with custom
routing libraries when using the |
|---|---|
| Type | ComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any, keyof JSX.IntrinsicElements> |
| Description | If wanting to link to another page you can define the href. |
|---|---|
| Type | string |
| Description | Icon for the button. |
|---|---|
| Type | string | number | ReactElement<any, string | JSXElementConstructor<any>> |
| Description | Unique id for the button. |
|---|---|
| Type | string |
| Description | Causes the button to be disabled. |
|---|---|
| Type | boolean |
| Description | Makes the element appear selected. |
|---|---|
| Type | boolean |
| Description | Controls tooltip announcement |
|---|---|
| Type | boolean |
| Description | Adds a label to the button for users of assistive technologies. |
|---|---|
| Type | string |
| Description | Handler called when the button loses focus. |
|---|---|
| Type | (event: FocusEvent<HTMLElement, Element>) => void |
| 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 |
| Description | Handler called when the button gains focus. |
|---|---|
| Type | (event: FocusEvent<HTMLElement, Element>) => void |
| Description | Called when the mouse is initially clicked on the element. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Called when the mouse enters the element container. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Called when the mouse leaves the element container. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Handler for the mouse up event. |
|---|---|
| Type | (event: MouseEvent<HTMLElement, globalThis.MouseEvent>) => void |
| Description | Allows getting a ref to the component instance.
Once the component unmounts, React will set @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs} |
|---|---|
| Type | string | Ref<HTMLElement> |
| Description | If defining |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
| Description | Theme for the icon button. |
|---|---|
| Type | (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens |
| Description | Text that will be displayed in the tooltip when hovered or focused on the button. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
Skeleton Props
| Description | A |
|---|---|
| Type | string |
| Description | Text to be displayed inside the skeleton create button. |
|---|---|
| Type | string |
| Description | Content to be placed inside the skeleton. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| 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. |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |
| Description | Children to be displayed inside the skeleton button.
Renders if |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | Sets the appearance of the skeleton button to look like a dropdown button. |
|---|---|
| Type | boolean |
| Description | Sets the appearance of the skeleton button to look highlighted. |
|---|---|
| Type | boolean |
| Description | A unique string that appears as a data attribute |
|---|---|
| Type | string |
| Description | Text content to be displayed inside the skeleton button. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
These props are shared by:
- switcher button skeleton
- notifications button skeleton
- help button skeleton
- settings button skeleton
| 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. |
|---|---|
| Type | string |
| Description | A |
|---|---|
| Type | string |