Child component of Navigation

Overview

Navigation User is designed to work within Navigation to provide a consistent orientation for the users of your application.

Sample

Accessibility

Keyboard navigation

KeyFunction
TabMoves focus to the next focusable element. If the currently focused element is the last, the focus will leave the component.
Tab and ShiftMoves focus to the previous focusable element. If the currently focused element is the first, the focus will leave the component.

API reference

Properties

PropertyAttributeDescriptionTypeDefault
activeactive

When true, the component is highlighted.

booleanfalse
fullNamefull-name

Specifies the full name of the user.

string
labellabel

Specifies an accessible label for the component.

string
textDisabledtext-disabled

When true, hides the fullName and username contents.

booleanfalse
thumbnailthumbnail

Specifies the src to an image (remember to add a token if the user is private).

string
userIduser-id

Specifies the unique id of the user.

string
usernameusername

Specifies the username of the user.

string

Styles

NameDescription
--calcite-navigation-accent-color

When active, specifies the component's border color.

--calcite-navigation-user-avatar-corner-radius

Specifies the component's avatar corner radius.

--calcite-navigation-user-avatar-color

Specifies the component's avatar icon color.

--calcite-navigation-background-color

Specifies the component's background color.

--calcite-navigation-user-full-name-text-color

Specifies the component's fullName text color.

--calcite-navigation-user-name-text-color

Specifies the component's username text color.

Methods

NameDescriptionSignature
componentOnReady

Creates a promise that resolves once the component is fully loaded.

componentOnReady(): Promise<this>
setFocus

Sets focus on the component.

setFocus(options?: FocusOptions): Promise<void>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.