Side navigation
A highly composable side navigation component that supports nested views.Deprecated
This package is deprecated. Use our new navigation system.
Installation
| Install | yarn add @atlaskit/side-navigation |
|---|---|
| Source | Bitbucket.org, (opens new window) |
| npm | @atlaskit/side-navigation, (opens new window) |
| Bundle | unpkg.com, (opens new window) |
Header props
| Description | Primary content for the item. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | Custom component to render as an item.
This can be both a functional component or a class component.
Will return |
|---|---|
| Type | ComponentClass<CustomItemComponentProps, any> | FunctionComponent<CustomItemComponentProps> |
| Description | Description of the item. This will render smaller text below the primary text of the item as well as slightly increasing the height of the item. |
|---|---|
| Type | string | global.JSX.Element |
| Description | Element to render before the item text. Generally should be an icon component. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | Event that is triggered when the element is clicked. |
|---|---|
| Type | (event: MouseEvent<Element, globalThis.MouseEvent> | KeyboardEvent<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 | A |
|---|---|
| Type | string |
Content props
Nestable content props
Section props
| Description | The children of the section. These should generally be item or heading components. |
|---|---|
| Type | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal |
| Description | This will render a border at the top of the section. |
|---|---|
| Type | boolean |
| Description | Adds |
|---|---|
| Type | boolean |
| 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 | A |
|---|---|
| Type | string |
| Description | The text passed to heading. If you don't provide a title, then the heading won't be rendered. |
|---|---|
| Type | string |