1.0.6 • Published 3 years ago

@easyfeedback/navigations v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Navigations

Table of Contents

Installation

yarn add @easyfeedback/navigations
# or
npm i @easyfeedback/navigations

FolderNavigation

FolderNavigation is a side navigation for the folder overview.

At the very top there is a button for creating a new folder. This is followed by all folders to which the current user has access to.

Import component

import { FolderNavigation } from '@easyfeedback/navigations'

General usage

const myFolderList = [
  { id: '1', numberOfItems: 10, title: 'My Surveys', href: '#' },
  { id: '2', numberOfItems: 3, title: 'Marketing', href: '#' },
]

<FolderNavigation folderList={myFolderList} />

Props

NameDescriptiontypeDefault
myFolderListThe list with all the folders the user has access to.Folder[]-
onCreateNewFolderOptional The function with the information what happens when the button "Add new folder" is clicked.MouseEventHandler<HTMLButtonElement \| HTMLAnchorElement>-
onEditSettingsOptional The function with the information what happens when the button "Settings" is clicked.MouseEventHandler<HTMLButtonElement>-
onDeleteFolderOptional The function with the information what happens when the button "Delete" is clicked.MouseEventHandler<HTMLButtonElement>-
1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.0

3 years ago