Components

NavigationElement

<NavigationElement />

Type Definitions

Handler function for a NavigationElementProps['onClick']
Parameters:
Name Type Description
event React.MouseEvent.<HTMLAnchorElement, MouseEvent>

React.MouseEvent

props NavigationElementProps

All props (along with the id) are also passed to the handler

View Source adminjs-design-system/src/molecules/navigation-element/navigation-element-props.ts, line 5

object
Prop Types of a NavigationElement component.
Properties:
Name Type Attributes Description
href string <optional>

Link href property

icon string <optional>

Icon name

isOpen boolean <optional>

Indicates if navigation element should be open(able). If set to undefined: element wont be, "openable". Tf set to either false or true - element will be open or close.

isSelected boolean <optional>

If element should be selected

label string

Label of the element

id string <optional>

Element uniq ID

onClick NavigationElementOnClickHandler <optional>

On Click handler

View Source adminjs-design-system/src/molecules/navigation-element/navigation-element-props.ts, line 14