Components

CurrentUserNav

<CurrentUserNav />

Type Definitions

object

# CurrentUserNavAction

Action element passed to CurrentUserNavProps

Properties:
Name Type Attributes Description
label string

action label

onClick function <optional>

action OnClick handler - taking event as a param

icon string <optional>

Action icon

isActive string <optional>

indicates if action is active

href string <optional>

href for an action

View Source adminjs-design-system/src/organisms/current-user-nav/current-user-nav-props.ts, line 3

object

# CurrentUserNavProps

Props passed to CurrentUserNav component

Properties:
Name Type Attributes Description
name string

User name

title string <optional>

User title - visible below the name

avatarUrl string <optional>

Avatar url

dropActions Array.<CurrentUserNavAction> <optional>

Array of all the actions visible on hover

lineActions Array.<CurrentUserNavAction> <optional>

Array of all the actions visible by the user name

View Source adminjs-design-system/src/organisms/current-user-nav/current-user-nav-props.ts, line 15